Results 1 to 5 of 5

Thread: Location independant database HELP !!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    canada
    Posts
    15

    Post

    I am making a program that I want to be location independant. I mean that you can drop the application and the database in the same directory and that the application when starting will look in the same directory as it is to find the database and connect to it. I am using ADO and am connecting manually to the database. Thanks!

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    canada
    Posts
    15

    Post

    Thanks MartinLiss it's an even better idea than what I had althought mine worked. All I had to do in the connection was to write the name of my database in the Source parameter and it will connect to it automaticaly!

  3. #3

    Post

    Why not use a UDL file?

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    canada
    Posts
    15

    Post

    It's because I can't use any of those and I figured it out so thanks for the effort!

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    App.Path will give the path where your program is running so if your database name is "MyDB.MDB", then strPath = App.Path & "\MyDB.MDB" will yield the path.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

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