S
spence
I am trying to create a command button on a form that
prints records based on the field [DSIPA] in the form. I
am a complete newbie with code, but I have the following
in both Sub billreport_Click() and printbillreport_Click()
procedures:
Dim stDocName As String
stDocName = "BillingReport"
DoCmd.OpenReport stDocName, acNormal
Dim stWhere As String
stWhere = "[DSIPA] = " & txtDSIPA
DoCmd.OpenReport stDoc, acNormal, _
WhereCondition:=stWhere
When I try test it out I get an error that says "The
action or method requires a Report Name argument."
I'm out of my depth here by far. Can some kind soul help
me out here?
Thanks,
spence
prints records based on the field [DSIPA] in the form. I
am a complete newbie with code, but I have the following
in both Sub billreport_Click() and printbillreport_Click()
procedures:
Dim stDocName As String
stDocName = "BillingReport"
DoCmd.OpenReport stDocName, acNormal
Dim stWhere As String
stWhere = "[DSIPA] = " & txtDSIPA
DoCmd.OpenReport stDoc, acNormal, _
WhereCondition:=stWhere
When I try test it out I get an error that says "The
action or method requires a Report Name argument."
I'm out of my depth here by far. Can some kind soul help
me out here?
Thanks,
spence