i need to use a number of copies provided by a field in the query used for the report. I believe that "printout" found either in macro or vba docmd can do this but do not know how to reference the field. In the printout macro i have tried variations in the copies =val([tag]) and =val([txttag]) where tag is the field and txttag is a txtbox with tag as its control on the report being printed. i see the needed number in the txttag when printed but can not get the copies to use it and one copy is printed. i have last tried:
DoCmd.OpenReport "R_Part_Tags-4000", acViewPreview
DoCmd.PrintOut , , , , "val(format([Tags]))"
the following solution to fix the copies almost has it:
hymn (TechnicalUser) 3 Nov 04 11:04
Tried and tested on A2002
DoCmd.OpenReport "Birthdays", acViewPreview
DoCmd.PrintOut , , , , 2
I thought i tried to try that...
DoCmd.OpenReport "R_Part_Tags-4000", acViewPreview
DoCmd.PrintOut , , , , "val(format([Tags]))"
the following solution to fix the copies almost has it:
hymn (TechnicalUser) 3 Nov 04 11:04
Tried and tested on A2002
DoCmd.OpenReport "Birthdays", acViewPreview
DoCmd.PrintOut , , , , 2
I thought i tried to try that...