Hi There,
I have a main form which shows the students I have within my table, the form is set to continuos and has a button next to each record. This button opens the report and filter the report to the record clicked.
Problem is I do not know how to reference the record which has been selected.
Here is my code so far, but this just returns an empty report,
DoCmd.OpenReport "StudentInfo", acViewPreview, , "firstName = " & Firstname
regards
Chris
I have a main form which shows the students I have within my table, the form is set to continuos and has a button next to each record. This button opens the report and filter the report to the record clicked.
Problem is I do not know how to reference the record which has been selected.
Here is my code so far, but this just returns an empty report,
DoCmd.OpenReport "StudentInfo", acViewPreview, , "firstName = " & Firstname
regards
Chris