I found this code on mvps.org (reports section). It's supposed to allow you to print only the current (or one page) at a time from a report. I keept getting this error "can't identify or find RunID in expression". Does anyone know what the RunID in this code means?
Thanks!
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere
Thanks!
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere