Results 1 to 11 of 11

Thread: Opening Database [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    Opening Database [RESOLVED]

    I am trying to open a database using a data control, however, I cannot use the OpenDatabase function. (yes, I am a noobie to VB.) How can I do this?

    Code:
         ' Bring up a load window
        cdbDialog.DialogTitle = "Open database. . ."
        cdbDialog.Filter = "Database (*.mdb, *.xls)|*.mdb;*.xls"
        cdbDialog.FileName = "mydata.xls"
        cdbDialog.ShowSave
        
        If (cdbDialog.FileName <> "") Then
            ' Close the current database
            dtaMagicBase.Close
            ' Open the new database
        End If
    Last edited by Darkwraith; Jul 18th, 2003 at 03:00 PM.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

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