f



Problem with MS Access Database

------=_NextPart_000_0038_01C56A17.539605A0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hello,
 
I'm using wxWidgets now a long time for designig my applications. This
weekend I tried first to use the Database classes, but I've got a
problem with them...
 
I've got an Microsoft Access Datenbase, with two tables:
Orte(ID, Staat, Name, and so on)
PLZOrte(ID, PLZ)
 
This tables are set into a relationship. The field ID ist the primary
key in Orte and set up the relation. Now I'd like to do a query to this
database in my program. 
 
Therefore I used a wxTable pointer:
m_PLZOrte = new wxDbTable( m_DB, "PLZOrt", 3);
m_PLZOrte->SetColDefs(0, "ID", DB_DATA_TYPE_INTEGER, &m_PLZOrtSatz.ID,
SQL_C_NUMERIC, sizeof(m_PLZOrtSatz.ID), true, true);
m_PLZOrte->SetColDefs(1, "Name", DB_DATA_TYPE_VARCHAR,
&m_PLZOrtSatz.Ort, SQL_C_WXCHAR, sizeof(m_PLZOrtSatz.Ort), true, true);
m_PLZOrte->SetColDefs(2, "PLZ", DB_DATA_TYPE_VARCHAR, &m_PLZOrtSatz.PLZ,
SQL_C_WXCHAR, sizeof(m_PLZOrtSatz.PLZ), true, true);
 
I want to get back the fields ID, Name and PLZ from the query, like I
set with the SetColDefs() funktion.
 
Then I set the From and Where Clause to get a Join:
m_PLZOrte->SetWhereClause(wxT("Orte.ID = PLZOrt.ID"));
m_PLZOrte->SetFromClause(wxT("Orte"));
 
PLZOrt is the Basetable and PLZOrt the second table.
 
But when I execute this query with m_PLZOrte->Query() it doesn't work.
The function returns false every time. 
 
The connection to the database can be set up correct, I think, because
this fuction return no error...
 
Can anyone tell me, what I'm doing wrong?
 
Thanks in advance
Daniel

------=_NextPart_000_0038_01C56A17.539605A0
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Nachricht</TITLE>

<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial size=3D2>I'm =
using wxWidgets=20
now a long time for designig my applications. This weekend I tried first =
to use=20
the Database classes, but I've got a problem with =
them...</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial size=3D2>I've =
got an=20
Microsoft Access Datenbase, with two tables:</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial =
size=3D2>Orte(ID, Staat,=20
Name, and so on)</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial =
size=3D2>PLZOrte(ID,=20
PLZ)</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial size=3D2>This =
tables are set=20
into a relationship. The field ID ist the primary key in Orte and set up =
the=20
relation. Now I'd like to do a query to this database in my program.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial =
size=3D2>Therefore I used a=20
wxTable pointer:<BR></FONT></SPAN><SPAN class=3D578442219-05062005><FONT =

size=3D2><FONT face=3DArial>m_PLZOrte =3D </FONT></FONT><FONT =
face=3DArial=20
size=3D2>new</FONT><FONT size=3D2><FONT face=3DArial> wxDbTable( m_DB, =
"PLZOrt",=20
3);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005></SPAN><SPAN =
class=3D578442219-05062005><FONT=20
size=3D2><FONT face=3DArial>m_PLZOrte-&gt;SetColDefs(0, "ID", =
DB_DATA_TYPE_INTEGER,=20
&amp;m_PLZOrtSatz.ID, SQL_C_NUMERIC, </FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D2>sizeof</FONT><FONT size=3D2>(m_PLZOrtSatz.ID), </FONT><FONT=20
size=3D2>true</FONT><FONT size=3D2>, </FONT><FONT =
size=3D2>true</FONT></FONT><FONT=20
size=3D2><FONT face=3DArial>);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT size=3D2><FONT=20
face=3DArial>m_PLZOrte-&gt;SetColDefs(1, "Name", DB_DATA_TYPE_VARCHAR,=20
&amp;m_PLZOrtSatz.Ort, SQL_C_WXCHAR, </FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D2>sizeof</FONT><FONT size=3D2>(m_PLZOrtSatz.Ort), </FONT><FONT=20
size=3D2>true</FONT><FONT size=3D2>, </FONT><FONT =
size=3D2>true</FONT></FONT><FONT=20
size=3D2><FONT face=3DArial>);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT size=3D2><FONT=20
face=3DArial>m_PLZOrte-&gt;SetColDefs(2, "PLZ", DB_DATA_TYPE_VARCHAR,=20
&amp;m_PLZOrtSatz.PLZ, SQL_C_WXCHAR, </FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D2>sizeof</FONT><FONT size=3D2>(m_PLZOrtSatz.PLZ), </FONT><FONT=20
size=3D2>true</FONT><FONT size=3D2>, </FONT><FONT =
size=3D2>true</FONT><FONT=20
size=3D2>);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial =
size=3D2></FONT></SPAN><SPAN=20
class=3D578442219-05062005><FONT face=3DArial><FONT=20
size=3D2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial><FONT =
size=3D2>I want to get=20
back the fields ID, Name and PLZ from the query, like I set with the=20
SetColDefs() funktion.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial><FONT=20
size=3D2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial><FONT =
size=3D2>Then I set the=20
>From and Where Clause to get a Join:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005></SPAN><SPAN=20
class=3D578442219-05062005><FONT><FONT size=3D2><FONT size=3D2><FONT=20
face=3DArial>m_PLZOrte-&gt;SetWhereClause(wxT("Orte.ID =3D=20
PLZOrt.ID"));</FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT><FONT size=3D2><FONT =
size=3D2><FONT=20
face=3DArial>m_PLZOrte-&gt;SetFromClause(wxT("Orte"));</FONT></FONT></FON=
T></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT><FONT size=3D2><FONT =
size=3D2><FONT=20
face=3DArial></FONT></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT><FONT size=3D2><FONT =
size=3D2><FONT=20
face=3DArial>PLZOrt is the Basetable and PLZOrt the second=20
table.</FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT><FONT size=3D2><FONT =
size=3D2><FONT=20
face=3DArial></FONT></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT><FONT size=3D2><FONT =
size=3D2><FONT=20
face=3DArial>But when I execute this query with m_PLZOrte-&gt;Query() it =
doesn't=20
work. The function returns false every time.=20
</FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial size=3D2>The =
connection to=20
the database can be set up correct, I think, because this fuction return =
no=20
error...</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial size=3D2>Can =
anyone tell me,=20
what I'm doing wrong?</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial size=3D2>Thanks =
in=20
advance</FONT></SPAN></DIV>
<DIV><SPAN class=3D578442219-05062005><FONT face=3DArial=20
size=3D2>Daniel</FONT></SPAN><SPAN =
class=3D578442219-05062005><FONT><FONT=20
size=3D2><FONT size=3D2></DIV></FONT></FONT></FONT></SPAN></BODY></HTML>

------=_NextPart_000_0038_01C56A17.539605A0--

0
dannyp1202
6/5/2005 7:41:35 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

2 Replies
734 Views

Similar Articles

[PageSpeed] 21

dannyp1202@arcor.de schrieb:

> I've got an Microsoft Access Datenbase, with two tables:
> Orte(ID, Staat, Name, and so on)
> PLZOrte(ID, PLZ)

[..]

> Can anyone tell me, what I'm doing wrong?

The problem is that you have a table object for every table. To access 
data from both tables, you have to merge the output. You need something 
like "SELECT Orte.ID, PLZOrte.PLZ, Orte.Name FROM Orte, PLZOrte WHERE 
PLZOrte.ID=Orte.ID".

pDb->SetFromClause(_T("Orte, PLZOrte"));
pDb->SetWhereClause(_T("Orte.ID=PLZOrte.ID"));
pDb->Query();

I don't know how (i.e. the table definition) the wxDbTable class has to 
be initialized because I build my SQL statements by hand (IMHO it's much 
easier).

Regards,
Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
mjscod
6/5/2005 8:07:17 PM
Hello,

Thank you for your answer, Mark.
Can you tell me, how I can built the SQL statements by hand? I've found
only this way, with the SetFromClause() and so on.=20

But this way you told me, works ;) The manual said I mustn't put the
Basetable in the From Clause and so I didn't do that. But it seems that
it is necessary to do that.

But the result variables are empty. I will check my programm for this.
Perhaps I'll find out why ;)

Thank you

Bye
Daniel



-----Urspr=FCngliche Nachricht-----
Von: Mark Junker [mailto:mjscod@gmx.de]=20
Gesendet: Sonntag, 5. Juni 2005 22:07
An: wx-users@lists.wxwidgets.org
Betreff: Re: Problem with MS Access Database

The problem is that you have a table object for every table. To access=20
data from both tables, you have to merge the output. You need something=20
like "SELECT Orte.ID, PLZOrte.PLZ, Orte.Name FROM Orte, PLZOrte WHERE=20
PLZOrte.ID=3DOrte.ID".

pDb->SetFromClause(_T("Orte, PLZOrte"));
pDb->SetWhereClause(_T("Orte.ID=3DPLZOrte.ID"));
pDb->Query();

I don't know how (i.e. the table definition) the wxDbTable class has to=20
be initialized because I build my SQL statements by hand (IMHO it's much

easier).

Regards,
Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org



---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
dannyp1202
6/5/2005 8:13:29 PM
Reply:

Similar Artilces:

accessing MS Access database fila via ODBC problem
Hi! I'm trying to connect to a MDB file via ODBC like this: char *DSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\dev-cpp\\test\\1.mdb"; SQLAllocEnv(&env); SQLAllocConnect(env, &hdbc); SQLBrowseConnect(hdbc, (UCHAR*)DSN, strlen(DSN), (UCHAR*)buf, BUF_SIZE, (SQLSMALLINT*)&rcvlen); The function SQLBrowseConnect fails and SQLGetDiagRec returns "IM001 Driver does not support this function" Can anyone help me? Thanks! David On Sun, 10 Jul 2005 12:55:30 +0200, David Siroky <dsiroky@email.cz> wrote: >Hi! > >I'm trying to connect to a MDB file via ODBC like this: > >char *DSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\dev-cpp\\test\\1.mdb"; > >SQLAllocEnv(&env); >SQLAllocConnect(env, &hdbc); >SQLBrowseConnect(hdbc, > (UCHAR*)DSN, > strlen(DSN), > (UCHAR*)buf, > BUF_SIZE, > (SQLSMALLINT*)&rcvlen); > >The function SQLBrowseConnect fails and SQLGetDiagRec returns >"IM001 Driver does not support this function" > >Can anyone help me? > >Thanks! > >David > Hi Maybe you need to post to another group, this one is very VB-based, but 1. Can't you use ADO instead of ODBC? It is a lot ea...

Problems with MOD-Function by accessing MS-Access Database via SQL in Delphi
Hello, the following problem: I use Delphi 6 to access a MS Access Database. In short, the Delphi Code looks like this: ADOConnection1.Open; ADOQuery1.Close; ADOQuery1.SQL.Text :=3D 'SELECT * FROM database1 WHERE value1=3D1 AND value2=3D ' + inttostr(array[3]); ADOQuery1.Open; Label5.Caption:=3DADOQuery1.Fiel=ADdByName('value4').AsString; Now I only want to select these rows, where the Integer value3 ends on 1=2E So I need the Modulo-Function. I found in the Internet these two functions: MOD(x,y) und x % y But I get an error if I want to use one. For example, If I change ADOQuery1.SQL.Text :=3D 'SELECT * FROM database1 WHERE value1=3D1 AND value2=3D ' + inttostr(array[3])+' AND MOD(value3,10) =3D 1; Delphi shows me a Syntax Error in this statement. Thx for help! Sorry, there is a ' missing in the code. But it has nothin to do with the problem: The first code runs perfectly, but If I insert AND MOD(20,10) = 0 there is the syntax error again. On 23 Aug 2005 11:51:15 -0700, sarah18web wrote: > Sorry, there is a ' missing in the code. But it has nothin to do with > the problem: > > The first code runs perfectly, but If I insert > AND MOD(20,10) = 0 there is the syntax error again. Don't know what it might have to do with Delphi; but MOD() is not a function supported by SQL server. Only the % operator works. ...

Ms. Access database problem
Hello, I have a MS. Access database in XP. When I open the database in design view, users will get an error message & cannot even open the database. Is there any way to solve this problem? Thanks for your help in advance. Orchid What error message? Did you try the standard compact/repair routine? Thanks for your reply! The error message is: "The database has been placed in a state by user 'Admin' on machine 'Name' that prevents it from being opened or locked." Yeah, I tried the standard compact/repair routine, (which is under Tool, Database Utilities, Compact and Repair Database...)but still got the same error message. "Orchid" <yhtong86@yahoo.com> wrote in message news:<1112194542.469115.105910@g14g2000cwa.googlegroups.com>... > Thanks for your reply! > The error message is: "The database has been placed in a state by user > 'Admin' on machine 'Name' that prevents it from being opened or > locked." > > Yeah, I tried the standard compact/repair routine, (which is under > Tool, Database Utilities, Compact and Repair Database...)but still got > the same error message. try deleting the *.ldb file on the machine that has it opened or locked. Orchid wrote: > Hello, > I have a MS. Access database in XP. When I open the database in design > view, users will get an error message & cannot even open the database. > Is there any way to solve this problem?...

databases.ms-access ....soft download
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ... www.soft30.com/download-1-11975.htm - 31k - Cached - Similar pages MDBSecure 1.0.8.0 - Soft30.com Utility which makes it easy to create secure MS Access Databases, ... MS Access 2000/2003 format. 30 day money back guarantee, 30 day trial. ... www.soft30.com/download-134-3249.htm - 32k - Cached - Similar pages Access Password Recovery Master 1.0 Screenshot - Soft30.com System Requirements: All versions up to MS Access 2003 are supported. - Microsoft operating system: Windows 9x/ME/NT/2000/XP. ... www.soft30.com/screen-149-11517.htm - 32k - Cached - Similar pages MDBSecure 1.0.8.0 Screenshot - Soft.com .... admin) import tables from other databases, produces Jet Connection string. MS Access 2000/2003 format. 30 day money back guarantee, 30 day trial. .... www.soft30.com/screen-134-3249.htm - 31k - Cached - Similar pages Oracle-to-Access 1.0 - Soft30.com Oracle-to-Access is a program to convert Oracle databases into MS Access format. .... System Requirements: 32MB RAM, MS Access (ODBC is not required), .... www.soft30.com/softdown-134-12466.htm - 32k - Cached - Similar pages Access Password 7.1.4215 Screenshot - Soft30.com Complete password recovery solution for MS Access. Access Password can recover both .... All MS Access versions are supported (Access 2.0 - Access 2003). .... www.soft30.com/screen-149-16139.h...

Create MS/ACCESS database app for non-ms/access users
Is it possible to create an MS/ACCESS database application and package it for users who do not have MS/ACCESS loaded in their PCs? I was told that this is possible, but I don't know what software is needed. Do you know? If so, please answer this post. Thanks. SueB *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! Per Sue Bricker: >Is it possible to create an MS/ACCESS database application and package >it for users who do not have MS/ACCESS loaded in their PCs? > >I was told that this is possible, but I don't know what software is >needed. Do you know? If so, please answer this post. Thanks. I think it comes down to semantics. "Licensed" vs "Loaded". No you can't create an app that will run on a PC with nothing loaded. Yes you can create an app that will run on a PC where nobody's paid the fee to run MS Access. You still have to install something on that PC, however. What it is is a freebie version of MS Access that only runs applications - doesn't allow anybody to develop an app. You develop the app on your PC, which has MS Access installed. Then somebody installs the freebie ("Runtime Access") on somebody's PC and they can run the app you developed without having to pay any money to anybody. -- PeteCresswell Sue, If Access isn't present, some version of it must be installed to run an Access database. VB.NET, ...

Problem with MS Access 97 database security
All, I recently started at a company that has a number of older MS Access 97 database applications that support production and order fulfillment. There is one database with which I have the following problems: 1) no one can make modifications to the database except by logging in using the database creator's userid and password on the workstation used by that person, who has of course left the company. Anyone else who tries to access the database, even the system administrator, gets the message "You dont have the nececssary permissions to use the xxxxxxxxx object.Have your system administrator or the person who created the object establish the appropriate permissions for you." 2) We logged in and "added" another person with the same permissions as the creator for all database objects, except we did not change the database object "ownerships", and the problem still persists. I suspect that the ownerships are the problem. Is this so? 3) I dont know anything about the restriction to a particular machine. Can anyone enlighten me on this issue? TIA JL <jliebman@kjlsoftware.com> wrote in message news:1176986756.146353.213270@e65g2000hsc.googlegroups.com... > All, > > I recently started at a company that has a number of older MS Access > 97 database applications that support production and order > fulfillment. There is one database with which I have the following > problems: > > 1) no one can make modifications ...

Problem concatenating memo fields in MS access database
I have an access database form where I have a button that is supposed to be appending the contents of 1 memo field to another is behaving non-predictably. The code is: Me![ToDo] = Me![ToDo] & Chr$(13) & Chr$(10) & Me![Studies1] & Chr$(13) & Chr$(10) & Me![Studies2] Me![Meds] = Me![MedsEntered] & Chr$(13) & Chr$(10) & Me![IVF] & Chr$(13) & Chr$(10) & Me![Diet] DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 Any thoughts on what I'm doing wrong? Could there be a casting problem? (I just want to append the text of 1 field to another field - am I actually assigning objects this way?) Any help would be greatly appreciated. GH ghadley_00@yahoo.com I have managed this in a report without the $ sign e.g. =[FirstName] & " " & [lastname] & Chr(13) & Chr(10) & IIf([job title] Is Not Null,[job title] & Chr(13) & Chr(10),"") It does not use memo fields but I would think they would work OK? James <ghadley_00@yahoo.com> wrote in message news:1131535433.245165.221450@f14g2000cwb.googlegroups.com... >I have an access database form where I have a button that is supposed > to be appending the contents of 1 memo field to another is behaving > non-predictably. The code is: > > Me![ToDo] = Me![ToDo] & Chr$(13) & Chr$(10) & Me![Studies1] & > Chr$(13) & Chr$(10) & Me![Studies2] > Me![Meds] = Me![MedsEnter...

Problem with MS Access 97 database security #2
All, I recently started at a company that has a number of older MS Access 97 database applications that support production and order fulfillment. There is one database with which I have the following problems: 1) no one can make modifications to the database except by logging in using the database creator's userid and password on the workstation used by that person, who has of course left the company. Anyone else who tries to access the database, even the system administrator, gets the message "You dont have the nececssary permissions to use the xxxxxxxxx object.Have your system administrator or the person who created the object establish the appropriate permissions for you." 2) We logged in and "added" another person with the same permissions as the creator for all database objects, except we did not change the database object "ownerships", and the problem still persists. I suspect that the ownerships are the problem. Is this so? 3) I dont know anything about the restriction to a particular machine. Can anyone enlighten me on this issue? TIA JL ...

Weird Problem... MS Access create a copy of the database by itself?
What might cause MS Access to create a copy of the database by itself? I have a Front End and a BE on a databse, but, some users, when click on the short cut, another FE database is created with the exact name of the FE but with a 1 at the end. i.e. FE "ABC.mdb", then when a certain user access it, an "ABC1.mdb" is created permanently until I delete it manually. Then, that same user access it again, another one is created. What's happening? Thanks for your help in advance. Perry Perry, do you have Compact On Close turned on under your options? Chances are that the spurious databases are left over as the result of a faulty compact. Access 2007 can do this, but older versions can too. In general Compact on Close is not a good idea. -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. <perryche@yahoo.com> wrote in message news:1176477933.206090.253790@o5g2000hsb.googlegroups.com... > What might cause MS Access to create a copy of the database by > itself? > > I have a Front End and a BE on a databse, but, some users, when click > on the short cut, another FE database is created with the exact name > of the FE but with a 1 at the end. i.e. FE "ABC.mdb", then when a > certain user access it, an "ABC1.mdb" is created permanently until I > delete it manually. Then, that same u...

Access MS-ACCESS database on server from client????
I m currently developing a java based application and want to know how can i make client access database located on the server? "HeMan_Speaks" <Lunar20092010@gmail.com> wrote in message news:d71ce567-0434-48b8-b1d2-bb191706ab45@w8g2000prd.googlegroups.com... >I m currently developing a java based application and want to know how > can i make client access database located on the server? I think you're going to have to expand a little bit more in your question here, as is not 100% quite clear what you're trying to do. You might want to make a little bit of a distinction between MS access, the development system that allows you to write code, build forms, and build reports, and that of the database engine that you choose to use with MS access. When you build an application MS access, you then choose your database engine, that might be oracle, SQL server, or perhaps more often leave the default jet database. So when you say make a client access application, are you talking about a piece of software that you plan to install and each computer? The fact that your introducing the issue of java further complicates your question. Perhaps your question is simply you have some java code running on a server, and with to open a mdb file (an access database file). In this situation you're not really using MS access at all here (you using what is called the jet database engine to read that mdb file). For all the trouble in this type of sce...

request for explanation on access an database in ms access
This is the code that I found on the internet for accessing an ms access database: import java.sql.*; class Test { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // set this to a MS Access DB you have on your machine String filename = "d:/java/mdbTEST.mdb"; String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ="; database+= filename.trim() + ";DriverID=22;READONLY=true}"; // add on to the end // now we can get the connection from the DriverManager Connection con = DriverManager.getConnection( database ,"",""); } catch (Exception e) { System.out.println("Error: " + e); } } } What I don't understand is the declaration of database. What I did was putting the database in the same dir as the sourcecode and use "jdbc:odbc:CafeJolt.mdb". But this doesn't work. And the above code does, why is that??? Actually it's not Java question. It's ODBC question. You have to have ODBC connection. Depending of Windows it's usually something like this (for my Windows 2000): Start->Sttings->Control Panel->Administartive Tools->Data Sources(ODBC)-> User DSN -> [Add]-> Driver to Microsoft Access(*.mdb) === And here, finally you can choose file name. ...

MS SQL to MS Access ASP problem
Hi, I am sorry to post this msg here but i could not find any group on ASP. Please forgive me for posting OT msg here but I need to get this ASP program to work with ms access instead of ms SQL... I have converted the DB now I just wanted to know should I just change the DB connection settings or there is more to be seen and taken care of. will I have to change the intire sql commands or its just the database connection setting. Warm Regards Jaunty Edward "Jaunty Edward" <smilesinblues@hotpop.com> wrote in message news:1ec8978e.0409040206.451ee990@posting.google.com... > Hi, > I am sorry to post this msg here but i could not find any group on > ASP. Please forgive me for posting OT msg here but I need to get this > ASP program to work with ms access instead of ms SQL... I have > converted the DB now I just wanted to know should I just change the DB > connection settings or there is more to be seen and taken care of. > > will I have to change the intire sql commands or its just the database > connection setting. In theory, just the connection settings. MS Access & SQL Server should be very compatible, unless you've been using some of SQL Server's more advanced features. "Jaunty Edward" wrote: > Hi, > I am sorry to post this msg here but i could not find any group on > ASP. Please forgive me for posting OT msg here but I need to get this > ASP program to work with ms access instead of ms SQ...

MATLAB command to access MS Access database
Hi! Is there a MATLAB command which gives access to a .mdb MS Access database or do I need a special driver? Thanks, Andree Hi Andree Ellert, you can use activeXcontrol to interact with MS-Access database. access = actxserver('Access.Application'); returns the handle for Access. set(access, 'Visible', 1); will show the opened Access window. use get(access) and set(access) commands to find the methods available to call. -Vadivelu M =========== http://www.mathworks.com/access/helpdesk/help/toolbox/database/datatool.shtml "Andree Ellert" <ellert@gmx.net/////\\\\\> wrote in message news:eed9874.-1@webx.raydaftYaTP... > Hi! > > Is there a MATLAB command which gives access to a .mdb MS Access > database or do I need a special driver? > > Thanks, > > Andree Andree Ellert wrote: > > > Hi! > > Is there a MATLAB command which gives access to a .mdb MS Access > database or do I need a special driver? > > Thanks, > > Andree <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4045&objectType=file> -Hardik ...

Wanted
I am wanting to be able to write reports against an ms-access database that is part of another package. I only want to report from the database. What I need is a package that will allow me to create the reports and then be able to distribute a run-time version. The client may not have Office so the package must run standalone. It could get to the Access database through an ODBC driver. Does anyone know what packages available? It looks like Crystal Reports has taken out their runtime version with their latest software but that was only a footnote in a book that I was reading. Please provide me with a list to start researching. Thanks, Joe There used to be other third-party report writers, but I don't know how many have survived over the years -- Crystal Reports appears to have been the most popular of these packages. (It is the only one that I have observed closely in use, and I saw some impressive work done with it on web applications against SQL Server.) Unless the magnitude of the distributable would be a problem, you can create your reports in Access, and distribute the Access application to run them with Access' runtime support. You'll get the Access runtime support in the Office Developer Edition for Access 97 - 2002, and in the Visual Studio.NET Tools for Office 2003 System for Access 2003. If you have difficulties with deployment using only the Packaging and Distribution Wizard, you can use a third-party installer such as Wise InstallMaster or Instal...

Problem with accessing Access 2002 Database from VB6 IN xp
I am facing a problem with accesiing MS access 2002 (Office XP) with VB 6.0 using a common controls like MSFlex/data control. It gives a error invalid database..? could any body can help me ?.. is their any patches to add in VB 6.? Or any suitable reference to be added in VB..? Thanks, PK *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! What code are you using to connect to the database? <PK> wrote in message news:3f408cfb$0$193$75868355@news.frii.net... > I am facing a problem with accesiing MS access 2002 (Office XP) with VB > 6.0 using a common controls like MSFlex/data control. It gives a error > invalid database..? could any body can help me ?.. is their any patches > to add in VB 6.? Or any suitable reference to be added in VB..? > > Thanks, > > PK > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it! ...

Accessing a MS Access database across two servers
Hi The technical support guys at my company have set up my system so that the server containing the MS Access database is on one server, while the pages that should access the database are on another server. When the pages and database are on the same server, I usually just connect through ODBC. The problem is that I don't know how to set up an ODBC connection to link from one server to a database in another. Anyone know what I am getting at and know of a possible solution, or a link to a site which may help. thanks in advance Brendan "Singularity" <Brendan.Collins@Singularity.co.uk> wrote in message news:1118749208.204709.287950@g49g2000cwa.googlegroups.com... > Hi > > The technical support guys at my company have set up my system so that > the server containing the MS Access database is on one server, while > the pages that should access the database are on another server. > > When the pages and database are on the same server, I usually just > connect through ODBC. > > The problem is that I don't know how to set up an ODBC connection to > link from one server to a database in another. > > Anyone know what I am getting at and know of a possible solution, or a > link to a site which may help. > I think this may be more of a network issue than an Access one. Can you see both servers from your PC? Is there any particular reason why they've been put on different servers? Seems a little odd to...

access MS-Access database in C# Windows Application
Hi, I am trying to access the MS Access database on my local machine in C# Windows Application in Visual Studio.NET. But it seems that it does not work. I use the Microsoft Application Blocks to access the database. I have tried 2 possible connection strings. ----------------------------------------- str_1 = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + DBFilePath; str_2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DBFilePath; //SqlHelper is the class in the Microsoft Application Blocks SqlHelper.ExecuteNonQuery( str_1, CommandType.Text, SQL_str); ----------------------------------- The error message I got is: "Unknown connection option in connection string: driver." for str_1 and " Unknown connection option in connection string: provider." for str_2 So I am wondering, where is the problem? Is it because my connection string for MS Access is specified wrongly? Or is it because I cannot use SqlHelper to access the MS Access database? ( I have used SqlHelper class to access the MS SQL server, and it works) Your help will be greatly appreciated. James James wrote: > Hi, I am trying to access the MS Access database on my local machine > in C# Windows Application in Visual Studio.NET. > > But it seems that it does not work. I use the Microsoft Application > Blocks to access the database. > > I have tried 2 possible connection strings. > > ----------------------------------------- > ...

Running a ms access database with access 2003 in Vista
I have a Database that I am trying to run on a new vista computer. Up to now I was running it on a win 98 computer and using access 2003! I installed access 2003 and I can make it run and view the data but I can not save any new records. Has any one seen this problem yet? Thanks Clarence Wollman On Wed, 22 Aug 2007 13:17:13 -0700, cwoll <clarencewollman@gmail.com> wrote: Do you have the same problem with the Northwind sample application? (search your computer for northwind.mdb) -Tom. >I have a Database that I am trying to run on a new vista computer. Up >to now I was running it on a win 98 computer and using access 2003! I >installed access 2003 and I can make it run and view the data but I >can not save any new records. >Has any one seen this problem yet? > >Thanks Clarence Wollman On Aug 22, 7:29 pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote: > On Wed, 22 Aug 2007 13:17:13 -0700, cwoll <clarencewoll...@gmail.com> > wrote: > > Do you have the same problem with the Northwind sample application? > (search your computer for northwind.mdb) I don't have a problem opening and editing the northwind.mdb. Thanks Hi I found a workaround. This database has a fronted and a backed. When I link them in the linked table manager, I was going threw the network to my computer. The reason I am doing this is when any networked computer opens the shortcut to the front end of this computer the linked table manger knows...

Accessing MS ACCESS database using Data Environment
HI, I have developped a program in Visual Basic 6.0 using MS Access database. I have created all my reports through Data Environment where I have entered the location of my database file (for e.g c:\project\app\test.mdb) in the Connection properties. I have installed my application on another PC using Package & Deployment wizard. When viewing the reports on the other PC, I have to enter everytime the new location of the database. How can I solve this problem, please? nadia wrote: > HI, > I have developped a program in Visual Basic 6.0 using MS Access database. >...

Best way to access a remote MS ACCESS database
What is the best way, via the internet, to access a remote Microsoft Access database? I was thinking of using VPN, but I thought that I would check here to see if there is a better way. Any suggestions? Thanks Do you mean remotely controlling an Access database, or linking tables over the internet? The first is doable, the second is a recipe for disaster. Remote Control: If your remote OS is Windows XP, you can use Remote Desktop (although only 1 person can access the PC at a time; this will change in the upcoming Service Pack for XP, but that may not help you now). Otherwise, GoToMyPC offers similar services, as does Terminal Server (a component of a Windows Server machine), PCAnywhere, et al. Linking to remote tables: You will almost certainly encounter severe problems with corruption, and your performance will almost certainly be so poor as to be unworkable. I attempted this once, with a web server in Canada and my machine in Augusta, GA. Even tiny data requests on a very well optimized data structure took waaaay too long to process ... it's simply not workable, IMO. Other alternatives would be covert the app to a web-based and place your data on a web server. Access/Jet isn't really designed for those workloads, but running a small site with minimal transactions and users can be done. Otherwsie, consider switching to a more robust data platform like MySQL, SQL Server, etc. -- Scott McDaniel CS Computer Software Visual Bas...

Does MS Access db have problems with multiple users access it at once?
I am developing an Access db which will be used by multiple users. My questions are: Does MS Access have problems with multiple users accessing the db at once? If yes, what is your solution to this problem? I was informed that Access is not a good application for multiple users accessing it at once. Thank you for your assistance to this issue of mine. Will the users just be reading, or will multiple users be writing at the same time? I've seen data corruption in older (Access '97) databases with large numbers of users reading and writing. I haven't seen any corruption where there's only one user writing. You might want to take a look at using MS-SQL, but it depends a lot on and whether the complexity of the application warrents the add'l resource investment... chloemelmom@yahoo.com (mary) wrote in message news:<a0a64947.0311251150.1357819@posting.google.com>... > I am developing an Access db which will be used by multiple users. My > questions are: > > Does MS Access have problems with multiple users accessing the db at > once? > > If yes, what is your solution to this problem? > > I was informed that Access is not a good application for multiple > users accessing it at once. > > Thank you for your assistance to this issue of mine. ...

Accessing 2 tables having same name but different databases ms-access
Hi, I have an application with MS-Access as backend and JSP/ tomcat as frontend/webserver. For getting better response time(as access is very slow compared to other RDBMS's), I have split the main DB into two DB's on different disks on my server for better performance.I have kept the table names same but changed the DB names. How do I access tables from both the DB's? This is what I have done; I made different connection to the respective DB's i.e. con and con2. When I want to access data, I am using 2 result sets for retriving data from the tables, but getting no result. Here is my code: rs2_1=stmt2_1.executeQuery("select * from Requests where Status='Released' AND LoginName='"+login+"' order by Req_No"); rs=stmt.executeQuery("select * from Requests where Status='Released' AND LoginName='"+login+"' AND Req_No> 5500 order by Req_No"); So, rs & stmt are for latest records and rs2_1 & stmt2_1 correspond the records from older DB. I think, I'm forgetting some small thing but cant get it. Please advice. What do you mean "no result"? Does "next()" return false for both rs2_1 an= d rs? If you're really trying to improve response time, you should probably be ru= nning the two queries in separate threads ... but as you acknowledge, Acces= s may not have as high performance as other RDBMSs. You would also see rel= iability adv...

Accessing a passworded MS Access 2000 database in Crystal Reports
Can anybody give me some code that I can put in to my VB6 app to open a passworded Access database in the Crystal Reports 8.5 RDC? I see so many examples - none of which seem to work for me. I am using a native connection in Crystal ( pdbdao.dll). My current code is : Dim Report As New crPrintPreview Dim crTable As CRAXDRT.DatabaseTable Private Sub Form_Load() Set crTable = Report.Database.Tables.Item(1) varpath = CurDir crTable.Location = varpath & "\OrderManager.mdb" CRViewer1.ReportSource = Report CRViewer1.ViewReport End Sub All I receive is the message "Error opening file xxxxxxx etc" and then "Open Database session failed" Appreciate any help! Peter Tyler ...

Problems accessing a MySQL database via an Access linked table
Hello In order to perform a hetrogeneous join (I think that's what they're called) between MySQL and another database, I've created an Access database containing linked tables from each datasource. I create the linked tables without any problems, clicking on "save password" before selecting the desired tables. I can then access both tables fine from within the Access GUI. The problem starts when I then try to access this data from my ASP.NET web application - classic ASP works fine but .NET gives me... ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'MyDSN' failed. From then on, the Access database remains locked (.LDB file in the same directory) and I get a similar error when I run my ASP page, which previously worked. Any suggestions would be gratefully received. Regards James Bird Web Manager The Dolls House Emporium Tudor Models Ltd james.bird@dollshouse.com www.dollshouse.com Tel: 01773 514405 Fax: 01773 513772 This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. No liability is accepted for the accuracy or completeness of any information contained in this email. If you are not the intended recipient please notify the sender that you have received it in error, and do not use, distribute, print or copy it. Can you supply your code? Also, can you successfully hit the source databases wthout using the middle datab...

Web resources about - Problem with MS Access Database - comp.soft-sys.wxwindows

Database - Wikipedia, the free encyclopedia
A database is an organized collection of data . The data are typically organized to model aspects of reality in a way that supports processes ...

Database - Wikipedia, the free encyclopedia
... requiring information. For example, modelling the availability of rooms in hotels in a way that supports finding a hotel with vacancies. Database ...

Fearing no punishment, Denver cops abuse crime databases for personal gain
(credit: Noel Hidalgo ) Denver police officers performed searches on state and federal criminal justice databases that were not work-related ...

Open source database improves protection and performance
Most enterprises rely on databases in some form or another, but they can be vulnerable to attack from people looking to steal information. They ...

Seattle’s Tableau Software snaps up database-computing startup in Germany
Seattle’s Tableau Software has acquired HyPer, a database-computing startup that spun out of research at a university in Munich, Germany. As ...

Amazon Web Services Announces that over 1,000 Databases Have Migrated to AWS since January 1, 2016
Amazon Web Services, Inc. (AWS), today announced that the AWS Database Migration Service is now generally available.

Taiwan launches database on areas vulnerable to quake damage
BEIJING (AP) — Earthquake-prone Taiwan is launching a database to inform residents which areas might be susceptible to creating potentially catastrophic ...

Interior Dept Spent $15 Million On A Crime Database That Doesn’t Work
Interior Dept Spent $15 Million On A Crime Database That Doesn’t Work

Microsoft's SQL database software now runs on Linux
Remember when Steve Ballmer likened Linux to cancer, and the notion of Microsoft courting the open source crowd was virtually unimaginable? The ...

Crate Raises $4M for New Container Database Technology
The founder of Docker Inc. invests in new technology that provides a very different and very distributed way to build a container database.

Resources last updated: 3/24/2016 2:03:24 PM