I'm opening a report from a form button using DoCmd.OpenReport. However, with the where clause is not right.
It needs to print up all the records in the report for a particular member ID. What's the syntax to point to the text boxes in both the form and the report. I need the correct syntax for that last part: DoCmd.OpenReport (formname), , , (field in report) = (field in form)
I tried
Dim stSQL as string
stSQL = "[MemeberID] = " & Me.MemberID
DoCmd.OpenReport "rptSomeReport", , , , , stSQL
with the MemberID is a string then:
stSQL = "[MemberID] = " & """" & Me.MemberID & """" (that's 4 double quotes in a row)
still comming up wrong
