D
Donna
I have a continuous form that lists all students. I have a check box that
allows me to select the students I want (the check box is linked to a field
in the tblStudent table. There is a command button in the Form Header that
opens a report as follows:
Dim stDocName As String
stDocName = "rptApplForm"
DoCmd.OpenReport stDocName, acPreview, , "[SelectBox] = -1"
I have also tried:
DoCmd.OpenReport stDocName, acPreview, , me.SelectBox.value = -1
Either way, I can't get the report to print the selected students.
The first way, I get a popup asking for the parameter value of SelectBox.
If I leave it blank, I get 1 blank report; if I enter -1, I get ALL students'
reports.
The second way gives me all students reports also.
Does anyone have any idea what I am doing wrong?
allows me to select the students I want (the check box is linked to a field
in the tblStudent table. There is a command button in the Form Header that
opens a report as follows:
Dim stDocName As String
stDocName = "rptApplForm"
DoCmd.OpenReport stDocName, acPreview, , "[SelectBox] = -1"
I have also tried:
DoCmd.OpenReport stDocName, acPreview, , me.SelectBox.value = -1
Either way, I can't get the report to print the selected students.
The first way, I get a popup asking for the parameter value of SelectBox.
If I leave it blank, I get 1 blank report; if I enter -1, I get ALL students'
reports.
The second way gives me all students reports also.
Does anyone have any idea what I am doing wrong?