Results 1 to 3 of 3

Thread: booting up database?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    102

    booting up database?

    hi all,


    can someone tell me how to do this

    i have an adodc1 component on my form, without going into the properties, how can i tell my form to look for the database called "\folder\test.mdb" inside its app.path?

    tanx!

    Aiden
    aiden,
    [email protected]
    __________________
    The human race is a smart one, but we still don’t yet understand that if there is no food in the fridge the first time, there wont be food in the fridge the 2nd 3rd or hundredth time you check -- (…always hoping)

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    VB Code:
    1. If fileexists("folder\test.mdb") Then
    2. 'perform db operations
    3. End If
    4.  
    5.  
    6.  
    7. Private Function fileexists(strfilepath As String) As Boolean
    8. If Dir(App.Path & strfilepath) <>"" Then
    9. fileexists = True
    10. Else
    11. fileexists = False
    12. End If


    HTH

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You may have to change "folder\test.mdb" to "\folder\test.mdb"

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