G
google3luo359
I have the following VB code for a printer button on a Tab page:
Dim strWhere As String
strWhere = "[AEPID] = [AEP10qry]![AEPID]"
DoCmd.OpenReport "rptAEP10", acViewPreview, , strWhere
but... instead of printing the correct AEPID record, it is printing
*another* AEPID record.
Would anyone have ideas as to why this might be happening?
Will I have to implant that print button on the subform with the
records, or can it stay on the Tab control?
Thanks in advance! Ric
Dim strWhere As String
strWhere = "[AEPID] = [AEP10qry]![AEPID]"
DoCmd.OpenReport "rptAEP10", acViewPreview, , strWhere
but... instead of printing the correct AEPID record, it is printing
*another* AEPID record.
Would anyone have ideas as to why this might be happening?
Will I have to implant that print button on the subform with the
records, or can it stay on the Tab control?
Thanks in advance! Ric