franksirvent
Programmer
HI, I am using INSERT INTO to insert a new record into a maintable...Works fine.
What I need is to get the Auto Number just given to the new record created so I can use further on another INSERT INTO query. Anyone could tell me how to do that ?
I am trying to get the AutoNumber because I then duplicate also the lines on the subform, which are linked to the maintable using the AutoNumber, and then I run another query which also copies all subform lines, giving me an exact copy of the original record...
Obviously this might be a stupid way of doing it...if someone can advise a better way I will very much appreciated...
thanks in advance
What I need is to get the Auto Number just given to the new record created so I can use further on another INSERT INTO query. Anyone could tell me how to do that ?
I am trying to get the AutoNumber because I then duplicate also the lines on the subform, which are linked to the maintable using the AutoNumber, and then I run another query which also copies all subform lines, giving me an exact copy of the original record...
Obviously this might be a stupid way of doing it...if someone can advise a better way I will very much appreciated...
thanks in advance