| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
||||
|
||||
|
Transferdatabase and error 3011
Hi Folks,
I am attempting to import a table using the following vba: DoCmd.TransferDatabase acImport, "ODBC Database", _ "ODBC;DSN=rem1;UID=guest;PWD=guest;" _ & "DATABASE=Remedy", acTable, "HPD_Help_Desk", "tbl_hd1" When I try runing the code I get run-time error 3011 The microsoft jet database engine could not find the object 'tbl_hd1'. Make sure the object exists and that you spell its name and path name correctly. I have no idea what is causing this error anyone able to help? |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
You don't appear to be telling it where to find the table. Your code needs to look something like this DoCmd.TransferDatabase acImport, "Microsoft Access", "G:\Audit Trail Database.mdb", acTable, "tblEmployees", "tblEmployees", False Create a module with an appropriate name, produce code along the lines above, attach the module to a command button or whatever method you are using and your table should import each time without any problem FAB John |
|
#3
|
|||
|
|||
|
I'm trying to use the same method
and I'm getting the same error. Please post if you find the solution. I'll do the same.
Thanks. Noel |
|
#4
|
||||
|
||||
|
Noel..err--- The solution's right above your first post. >.>
|
|
#5
|
||||
|
||||
|
The VBA help file is a good source of info on how to use this (as well as many other things):
Quote:
__________________
Thanks, Bob Larson Free samples, tools and tutorials (including Auto Frontend Update Enabling Tool) "Have you tried turning it off and on again?" |
|
#6
|
|||
|
|||
|
thanks for the replies
I think I posted indicating that I got the transferdatabase method to work using the odbc argument. My problem was related to the visual fox pro odbc driver, which I subsequently resolved...the correct driver is that which is dated 12/7/1999 (don't be fooled by a driver --VFPODBC.DLL-- dated any other date...as the method will not work with anything but the 12/7/1999 version).
Thanks - Noel |
|
#7
|
||||
|
||||
|
The problem was actually to do with network issues and not anything to do with the path or it not being able to find the table, all that is supplied with the little bit that says "DSN=rem1"
|
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|