F
Fred Wilson
The following code works as long as I do NOT include the option
"dbFailOnError" it gives be "Variable not Defined"
Any ideas?
I want the option just to cover myself in the event of an error.
Function UploadTables()
Dim strLoc As String
Dim strSQl As String
strLoc = "\\SERVER\DIRECTORY\FILE_DIRECTORY\FILE_BE.mdb"
strSQl = "Select * Into tblJunk from tblfacility IN '" & strLoc & "';"
CurrentDb.Execute strSQl, dbfailonerror
End Function
"dbFailOnError" it gives be "Variable not Defined"
Any ideas?
I want the option just to cover myself in the event of an error.
Function UploadTables()
Dim strLoc As String
Dim strSQl As String
strLoc = "\\SERVER\DIRECTORY\FILE_DIRECTORY\FILE_BE.mdb"
strSQl = "Select * Into tblJunk from tblfacility IN '" & strLoc & "';"
CurrentDb.Execute strSQl, dbfailonerror
End Function