Results 1 to 2 of 2

Thread: MDE Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    1

    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

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: MDE Question

    Quote 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

    BOFH Now, BOFH Past, Information on duplicates

    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
  •  



Click Here to Expand Forum to Full Width