D
Daniel
Hi,
I have this copy button on my form that when it is clicked
it asks the user how many copies it wants. The problem I
have is that if I don't requery the form I can not make
multiple copies of the record. (The primary key is
changed). The copy works when I add Me.requery after
every copy (in other words, I requery the form at the end
of the for loop). THe problem with the requery is that it
sets the form back to the first record and then I have to
set my current record back to the orginal record (all this
is in a for loop).
SO when the copying is performed, it looks like its
flashing back though I don't want it to do that. If I
could only requery with out showing it, it would be great.
The above as probably a little complicated to explain but
the main algorithm goes:
x= What ever user enters.
for y=1 to x
copy record
change to the copy the primary key
save the record
Me.Requery
DoCmd.GoToRecord ---> [Orignal record copying]
next y
Thank you
I have this copy button on my form that when it is clicked
it asks the user how many copies it wants. The problem I
have is that if I don't requery the form I can not make
multiple copies of the record. (The primary key is
changed). The copy works when I add Me.requery after
every copy (in other words, I requery the form at the end
of the for loop). THe problem with the requery is that it
sets the form back to the first record and then I have to
set my current record back to the orginal record (all this
is in a for loop).
SO when the copying is performed, it looks like its
flashing back though I don't want it to do that. If I
could only requery with out showing it, it would be great.
The above as probably a little complicated to explain but
the main algorithm goes:
x= What ever user enters.
for y=1 to x
copy record
change to the copy the primary key
save the record
Me.Requery
DoCmd.GoToRecord ---> [Orignal record copying]
next y
Thank you