Hi there,
I am using the following code behind a button:
This code seemed to work fine for a while and now it highlights the line
it does not seem like the '.'
Basically this line is saying that the item selected in the listbox is the name of the report.
Perhaps I am using .value incorrectly?
I am using the following code behind a button:
Code:
Private Sub student_Click()
Dim reportname As String
Dim DateFilter As String
reportname = listReports.Value
DoCmd.OpenReport reportname, acViewPreview, , "[Date] Between #" & Me.cboFrom & "# And #" & Me.cboTo & "#"
End Sub
This code seemed to work fine for a while and now it highlights the line
Code:
reportname= listReports.value
Basically this line is saying that the item selected in the listbox is the name of the report.
Perhaps I am using .value incorrectly?