I am close to solving this, but I'm hopeful someone else can provide just a bit more guidance relative to the code itself as outlined later in this post.
I created a Print Report Dialog Box Form.
It has three parts to it:
1)Print Choices - This provides users two options in the form of an option group: (1) to choose to print one copy (2) or to choose to print three copies.
2)Print Destination- This gives users the choice between printing or previewing the report. Again, I've used an option group here.
3)Command buttons - I have two command buttons here, one for the actual printing and one for the cancel event.
I'm having trouble with the Print event procedures. I'm going to attach the Event Procedure to the Print command button and attach it to the OnClick property. I want to be able to print one copy or three copies, depending on the user's choice. If the user selects the choice to print three copies, I'd like to be able to change the labels on all three to read "File Copy", "External Copy", etc.
On another tech forum, someone posted the following entry:
[purple]clearly you can't directly print 3 different reports with a single click unless you use 3 part stationery with different texts pre-printed
----------
so to print 3 slightly different reports, you need to loop round a print command 3 times, and depending on what the print number is, set a watermark or text box/label on the report to carry the variable text.
so on your button do something like
for rcount = 1 to 3
docmd.openreport "reportname"
next rcount
and ten in the openevent for "reportname" have
select case rcount:
case 1: mytext = "copy"
case 2: mytext = "Audit"
end select" [/purple]
Can someone review this and point me in the right direction? I'm extremely new to Visual Basic and have struggled for two days to find the right code. I'm thinking this might be close to what I need, but I'm not sure.