I abandoned the Access inputBoxes in lieu of a home-made version (an unbound form) that I have a print button at the bottom to print multiple copies of a report. Here is the heart of the code (to print NumPatrons #of the report MABriefList):
If NumPatrons <= 0 Then GoTo ExitTournee
DoCmd.OpenReport "MABriefList", acViewPreview
For Counter = 1 To NumPatrons
DoCmd.PrintOut acPrintAll, , acHigh
Next Counter
DoCmd.Close acReport, "MABriefList"
Here is the problem. When the main switchboard (yes, I won't be using those again either) opens my little inputbox, somehow a user managed to print the switchboard and not the MABrieflist. Should I have 'handled' the switchboard window somehow ? Also, why can't I simply use
DoCmd.Printout acPrintAll, , acHigh, NumPatrons ? That did not work.
All help greatly appreciated.
If NumPatrons <= 0 Then GoTo ExitTournee
DoCmd.OpenReport "MABriefList", acViewPreview
For Counter = 1 To NumPatrons
DoCmd.PrintOut acPrintAll, , acHigh
Next Counter
DoCmd.Close acReport, "MABriefList"
Here is the problem. When the main switchboard (yes, I won't be using those again either) opens my little inputbox, somehow a user managed to print the switchboard and not the MABrieflist. Should I have 'handled' the switchboard window somehow ? Also, why can't I simply use
DoCmd.Printout acPrintAll, , acHigh, NumPatrons ? That did not work.
All help greatly appreciated.