K
Kelvin Beaton
I'm using a button to print a report, based on the "AISPID" on the current
record on form "frmAnnualISPReview_subform"
I seem to have my syntax wrong, again.
If ""[forms]![frmAnnualISPReview_subform]![AISPID]" points to the field on
the form that I want to print my report for.
What does "Me.AISPID" point to?
Is the syntax where the field on the report = the field on the report?
Where do the "" fit in if the fields are numeric?
strWhere = "[forms]![frmAnnualISPReview_subform]![AISPID] = " &
Me.AISPID
DoCmd.OpenReport "rptAnnualISPReview", acViewPreview, , strWhere
Thanks
Kelvin
record on form "frmAnnualISPReview_subform"
I seem to have my syntax wrong, again.
If ""[forms]![frmAnnualISPReview_subform]![AISPID]" points to the field on
the form that I want to print my report for.
What does "Me.AISPID" point to?
Is the syntax where the field on the report = the field on the report?
Where do the "" fit in if the fields are numeric?
strWhere = "[forms]![frmAnnualISPReview_subform]![AISPID] = " &
Me.AISPID
DoCmd.OpenReport "rptAnnualISPReview", acViewPreview, , strWhere
Thanks
Kelvin