Hello,
I get error '3024', Could not find file 'G:\...' when I try both of these pieces of code. I have checked the spelling and the file is there. Please help.
#1
Public Sub LoadTables()
Dim strSQL As String
Dim dbAAPCost As Database
Set dbAAPCost = CurrentDb
strSQL = "INSERT INTO tblBOM SELECT * FROM " & _
"[G:\CostDataBase\BPCS_Extract.mdb].tblBOMExtract;"
dbAAPCost.Execute strSQL, dbFailOnError
End Sub
______________________________________________________________________________________________
#2
Public Sub LoadTables()
DoCmd.TransferDatabase acImport, "Microsoft Access", _
"G:\CostDataBase\BPCS_Extract.mdb", acQuery, "qryTest", "tblTest"
End Sub
Thanks.
I get error '3024', Could not find file 'G:\...' when I try both of these pieces of code. I have checked the spelling and the file is there. Please help.
#1
Public Sub LoadTables()
Dim strSQL As String
Dim dbAAPCost As Database
Set dbAAPCost = CurrentDb
strSQL = "INSERT INTO tblBOM SELECT * FROM " & _
"[G:\CostDataBase\BPCS_Extract.mdb].tblBOMExtract;"
dbAAPCost.Execute strSQL, dbFailOnError
End Sub
______________________________________________________________________________________________
#2
Public Sub LoadTables()
DoCmd.TransferDatabase acImport, "Microsoft Access", _
"G:\CostDataBase\BPCS_Extract.mdb", acQuery, "qryTest", "tblTest"
End Sub
Thanks.