G
Guest
I have used SQL code to copy and append an existing record, however I get the
"Statement Too Complex" message. Basically, I am just trying to copy a record
from the table and append it to the bottom of the same table. However, the
table has a primary key ([NumberID]), so I don't believe I can just use this
code:
'"INSERT INTO [*Master_tbl] " & _
'"SELECT [*Master_tbl].* " & _
'"FROM [*Master_tbl] " & _
'"WHERE [*Master_tbl].[NumberID] = " & [Forms]![*Master_frm]![NumbertID]
So I tried to use the sequel code and use all the fields in the table, which
is about 120 fields, and leave out the [NumberID] in both the INSERT INTO and
SELECT statement. But every time i try to paste the code in or try and save,
it gives me the error message "Statment Too Complex".
I am sure I am probably making this more difficult than needed, I just need
to copy a record to the bottom of a table. Any suggestions????
"Statement Too Complex" message. Basically, I am just trying to copy a record
from the table and append it to the bottom of the same table. However, the
table has a primary key ([NumberID]), so I don't believe I can just use this
code:
'"INSERT INTO [*Master_tbl] " & _
'"SELECT [*Master_tbl].* " & _
'"FROM [*Master_tbl] " & _
'"WHERE [*Master_tbl].[NumberID] = " & [Forms]![*Master_frm]![NumbertID]
So I tried to use the sequel code and use all the fields in the table, which
is about 120 fields, and leave out the [NumberID] in both the INSERT INTO and
SELECT statement. But every time i try to paste the code in or try and save,
it gives me the error message "Statment Too Complex".
I am sure I am probably making this more difficult than needed, I just need
to copy a record to the bottom of a table. Any suggestions????