I have this code in a command button and for some reaosn it will not print the current record but insist on printing all records in my database, Question is how do I when on a form say 34 of 2390 print only record 34 with my report
Heres my code
strReportname = "Birth"
strCriteria = "[regno] = " & Me! [regno]
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
Heres my code
strReportname = "Birth"
strCriteria = "[regno] = " & Me! [regno]
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria