Question : Importing an Access table

I have used this code to import Excel and text files. I now want have a button on a form go to an Access database and be able to select a table to import. I can get to the Access database but am unable to select a table

With fd
        .Title = "Select Database and Table to Import"
        .Filters.Add "Access File", "*.mdb"
        .InitialFileName = INITIAL_FOLDER
        If .Show = -1 Then FilePath = .SelectedItems(1)
End With
Set fd = Nothing

Answer : Importing an Access table

Unfortunately that is definitely the opposite to what would be ideal.  

You can of course use the GetExternalData menu option to import any table from any database and it might be worth your while to use this built in facility.

You can invoke the menu option programmatically if you use :
docmd.RunCommand acCmdImport

..this will prompt via the normal access dialogs to enable you to import anything.

Random Solutions  
 
programming4us programming4us