D
Dkline
I have a VBA module that transfer 19 queries as tables to another MDB.
I'm using a Private Sub called 19 times:
DoCmd.TransferDatabase acExport, "Microsoft Access", PathToSource,
acTable, NameOfQuery, NameOfTable, False, False
The offending call is:
strNameOfQuery = "qry_subform program_value by inv account"
strNameOfTable = "tbl_value by investment acct"
ExportTables strPathToSourceDB, strNameOfQuery, strNameOfTable
On this one only of the 19 I get the error message:
" Runtime error '3090'. Resultant table not allowed to have more than one
Autonumber field."
I find this curious since I'm not creating or including an Autonumber field.
The Select query itself is a combination of two other queries and a table.
What should I be looking for in the underlying queries and tables in this
query that would cause this error?
I'm using a Private Sub called 19 times:
DoCmd.TransferDatabase acExport, "Microsoft Access", PathToSource,
acTable, NameOfQuery, NameOfTable, False, False
The offending call is:
strNameOfQuery = "qry_subform program_value by inv account"
strNameOfTable = "tbl_value by investment acct"
ExportTables strPathToSourceDB, strNameOfQuery, strNameOfTable
On this one only of the 19 I get the error message:
" Runtime error '3090'. Resultant table not allowed to have more than one
Autonumber field."
I find this curious since I'm not creating or including an Autonumber field.
The Select query itself is a combination of two other queries and a table.
What should I be looking for in the underlying queries and tables in this
query that would cause this error?