Results 1 to 4 of 4

Thread: dynamically connecting dataenvironment

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    17

    Exclamation dynamically connecting dataenvironment

    Hi Friends,

    I have a Password protected Access database
    I am Trying to CONNECT DATAENVIRONMENT DYNAMICALLY From VB. every time i open report , i want my connection to be active for that time only.
    i can connect using the normal way but in that way my app becomes static.

    I am lost in this .

    thanks
    arunendra

  2. #2
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: dynamically connecting dataenvironment

    try this after the process

    if de.rscommand.state=1 then de.rscommand.close

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    17

    Re: dynamically connecting dataenvironment

    actually i want to define the connection at run time not at design time (using a password protected access database) so that the application can always point the database no matter where it is installed

  4. #4
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: dynamically connecting dataenvironment

    just the same, if the state of your connection is open have to close it,

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