G
Guest
I am new to Access, but trying to learn fast. I'm really stuck with a
'newbie' report question.
My form has a button that I use to print receipts using the code below. The
report is filtered to only print for those whose Yes/No field Request = True.
Sub cmdprintReceipts_Click
DoCmd OpenReport "rptReceipts", acViewPreview
chkboxRequest = False 'rec source is Request
txtNumReceiptsIssued = txtNumReceiptsIssued + 1
End Sub
Here's my problem
a) I want to reset 'chkboxRequest' and update 'txtNumReceiptsIssued' for
all of the records printed. It is only doing this for the first record.
b) I only want these updatings to happen if the report is ACTUALLY PRINTED.
If I cancel the 'preview' without printing, no changes should take place.
I'd really appreciate an assist with this. Thanks.
'newbie' report question.
My form has a button that I use to print receipts using the code below. The
report is filtered to only print for those whose Yes/No field Request = True.
Sub cmdprintReceipts_Click
DoCmd OpenReport "rptReceipts", acViewPreview
chkboxRequest = False 'rec source is Request
txtNumReceiptsIssued = txtNumReceiptsIssued + 1
End Sub
Here's my problem
a) I want to reset 'chkboxRequest' and update 'txtNumReceiptsIssued' for
all of the records printed. It is only doing this for the first record.
b) I only want these updatings to happen if the report is ACTUALLY PRINTED.
If I cancel the 'preview' without printing, no changes should take place.
I'd really appreciate an assist with this. Thanks.