|
-
Mar 21st, 2005, 10:01 AM
#1
Thread Starter
New Member
MDE Question
Hello,
Can someone please provide some sample code to access the underlying tables in an access database when writing code in say the FORM_LOAD sub? Is it just a matter of providing different connection parameters in the connection string?
Cheers
-
Mar 21st, 2005, 10:54 AM
#2
Re: MDE Question
 Originally Posted by moemoe
Hello,
Can someone please provide some sample code to access the underlying tables in an access database when writing code in say the FORM_LOAD sub? Is it just a matter of providing different connection parameters in the connection string?
Cheers
What has this got to do with MDE ?? Oh wait is that MS Development Environment? not MDE as in Access Executable database ??
Why would you need to have connection strings if you are in access? It has them already - currentProject.connection
Code would be something like:
Code:
Dim adoRS as ADODB.Recordset
adoRS.Open "Sql statement",currentproject.connection,3,3,1 '(dynamic, optimistic, adcmdtext)
if not adoRS.Eof then
'...
end if
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|