A
anne.rowe
Hi,
I have an ADP database connected to a SQL Server database.
I need to export/import data from a table to Excel.
I use the following code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"tblSaving", strFile, True, "Saving".
If I log in Access as the owner of the database the code works, however
ifg I log as another user with Select, Insert, Update and Delete
Permission on the tblSaving table, it does not find the table.
I have tried to change the name as:
dbo.tblSaving,
dbo_tblSaving,
tblSaving (dbo) (As displayed in the database container)
None of them work.
I would really appreciate if someone could help and let me know how I
can name the table in VBA.
Thank you so much
Anne
I have an ADP database connected to a SQL Server database.
I need to export/import data from a table to Excel.
I use the following code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"tblSaving", strFile, True, "Saving".
If I log in Access as the owner of the database the code works, however
ifg I log as another user with Select, Insert, Update and Delete
Permission on the tblSaving table, it does not find the table.
I have tried to change the name as:
dbo.tblSaving,
dbo_tblSaving,
tblSaving (dbo) (As displayed in the database container)
None of them work.
I would really appreciate if someone could help and let me know how I
can name the table in VBA.
Thank you so much
Anne