S
Scott
Greetings most excellent programmers. First post but love the tons of
messages that have helped so far. So thanks in advance!!!
I have a table with an ID (MyID) which is a sequential number as primary
key. I generate the number from a form with the followoing expression in the
"default" property MyID on the form set to =DMax("MyID","MyIDTable")+1. This
works great when creating new records from the form. I now need to in some
cases load records via Append query ( i have an import from flat file into
temp table, then do append query to move to primary table). When I try to
use this same method in append query to set MyID (via expression on query
field) , it will only insert the first record from append source and then
errors on unique record violation. It's as if the first record gets there
but the DMax("MyID","MyIDTable")+1 can't see the new record and can't
increment MyID on each append row insert?
Any ideas?
messages that have helped so far. So thanks in advance!!!
I have a table with an ID (MyID) which is a sequential number as primary
key. I generate the number from a form with the followoing expression in the
"default" property MyID on the form set to =DMax("MyID","MyIDTable")+1. This
works great when creating new records from the form. I now need to in some
cases load records via Append query ( i have an import from flat file into
temp table, then do append query to move to primary table). When I try to
use this same method in append query to set MyID (via expression on query
field) , it will only insert the first record from append source and then
errors on unique record violation. It's as if the first record gets there
but the DMax("MyID","MyIDTable")+1 can't see the new record and can't
increment MyID on each append row insert?
Any ideas?