Results 1 to 4 of 4

Thread: Path of your database?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Location
    Chemainus,BC,Canada
    Posts
    7

    Post

    how can i specify where my database is if i put it on other computers, there must be something like
    data1.path = me.path

    or something like that.. any suggestions?

    Thanks,
    Tobyn

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Well for a (Microsoft) network, try:

    \\COMPUTER_NAME\SHARE_NAME\PATH\TO\BIBLIO.MDB

    Worth A Shot.

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  3. #3
    Junior Member
    Join Date
    Nov 1999
    Location
    Forsyth, GA, USA
    Posts
    26

    Post

    "App.Path" will give you the drive and directory of your executable.....

  4. #4
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    Gudday Tobyn
    Yeap do this all the time. Here is my approach.

    Add a start.bas

    Global dbPath as string

    Sub Main()
    dbPath = "\\Computername\c:\data\data.dbm"

    Ok anywhere in the project

    set database = dbengine.opendatabase(dbPath)

    Hope it helps

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