V
vavroom
Hello everyone,
I need assistance with filtering a report. It seems like such a silly
thing, but I can't seem to get the syntax right
I have a form with a combobox. I need the report to filter based on
the value of the combobox. The combobox's value is text (names), in
the format "Doe, John".
I know I am referencing the combo box properly because I can put a
textbox on the report that calls the value of the combobox correctly.
But when I try to filter, it just won't take. I've read on this
forum, read the help files, etc, I have tried a variety of variations
of single quotes, double quotes, etc, I just can't get my head around
the proper syntax.
The value I seek is:
Forms![frmSendPDF].cmbCoord.column(0)
The field in the report that has to be filtered is called
Coord
Ideally, I would like to apply the filter to the report from the form,
and was thinking about using something like this:
Reports![rptSendPDF].filter= ([Coord]= '" & Forms!
[frmSendPDF].cmbCoord.Value & "')
Thank you for any and all help you might be able to provide.
Nic
I need assistance with filtering a report. It seems like such a silly
thing, but I can't seem to get the syntax right
I have a form with a combobox. I need the report to filter based on
the value of the combobox. The combobox's value is text (names), in
the format "Doe, John".
I know I am referencing the combo box properly because I can put a
textbox on the report that calls the value of the combobox correctly.
But when I try to filter, it just won't take. I've read on this
forum, read the help files, etc, I have tried a variety of variations
of single quotes, double quotes, etc, I just can't get my head around
the proper syntax.
The value I seek is:
Forms![frmSendPDF].cmbCoord.column(0)
The field in the report that has to be filtered is called
Coord
Ideally, I would like to apply the filter to the report from the form,
and was thinking about using something like this:
Reports![rptSendPDF].filter= ([Coord]= '" & Forms!
[frmSendPDF].cmbCoord.Value & "')
Thank you for any and all help you might be able to provide.
Nic