M
Mark S
On a data entry form I have a Print but that basically performs the
following:
DoCmd.Close
DoCmd.OpenReport strDocName, acViewNormal, , strWhere
DoCmd.OpenForm "frmMTAG", acNormal, , strWhere
strWhere is from a unique autonumber field on the form.
I thought I was using the Close to make sure the record was stored,
then printed it, then reopened it. This works fine most of the time.
Occassianally, the record is completely lost. You can see that the
autonum field has incremented when you create the next record, but the
lost record is nowhere in the table.
I am guessing the OpenReport is occuring before the Close completely
stores the record.
Any suggestions?
following:
DoCmd.Close
DoCmd.OpenReport strDocName, acViewNormal, , strWhere
DoCmd.OpenForm "frmMTAG", acNormal, , strWhere
strWhere is from a unique autonumber field on the form.
I thought I was using the Close to make sure the record was stored,
then printed it, then reopened it. This works fine most of the time.
Occassianally, the record is completely lost. You can see that the
autonum field has incremented when you create the next record, but the
lost record is nowhere in the table.
I am guessing the OpenReport is occuring before the Close completely
stores the record.
Any suggestions?