What is the correct syntax for using wildcard characters in the TransferDatabase method?
I need to import data into a summary db from up to 100 similar db's. Each of these db's is named "RegionalOfficexxxx", where xxxx is a four-character alphabetical code.
I have tried using
and
but each of these gives me the error message "Not a Valid Filename".
Can somebody help me with the correct syntax please?
TIA
Lightning
I need to import data into a summary db from up to 100 similar db's. Each of these db's is named "RegionalOfficexxxx", where xxxx is a four-character alphabetical code.
I have tried using
Code:
DoCmd.TransferDatabase acImport, "Microsoft Access", "C:\Survey\RegionalOffice????.mdb", acTable, "tblOffice", "tblImportOffice", False
Code:
DoCmd.TransferDatabase acImport, "Microsoft Access", "C:\Survey\RegionalOffice*.mdb", acTable, "tblOffice", "tblImportOffice", False
but each of these gives me the error message "Not a Valid Filename".
Can somebody help me with the correct syntax please?
TIA
Lightning