Hello,
Help with some code would be greatly appreciated.
I have a form with a subform. On my main form I have a combobox that allows the user to choose a delegated owner. The subform then displays all the delegated owners’ records. There is also an options frame with five toggle button filter options.
I have placed a command button on the main form to print preview a report based on the records being filtered (or not filtered) per delegated owner selected. I used a macro to open the report at first, and then realized it is opening the query only without the form filter.
I did have some code that worked for just the combobox selection, but showed all records no matter the filter. I deleted it; otherwise I would post it here.
Here are the object names:
frmDelegatedOwner (main form)
cmbDelegatedOwner
cmdPreviewFilteredReport <-- the button that needs the code to run report based on filtered records.
***the issue here is that I’m not sure which ‘name’ is supposed to be used for the subform:
frmLianzi_MDR_Form_Updates – subform box (object?)
frmUpdatesSubform – actual form
The fields in the subform that are filtered by the toggle buttons are:
Progress
A-START
Report name:
rptLianzi_MDR_DataEntry-FilterByForm
Toggle buttons:
tglAllRecords
tglCompleted
tglInProcess
tglNotStarted
tglWithClient
TYIA,
Patty
Help with some code would be greatly appreciated.
I have a form with a subform. On my main form I have a combobox that allows the user to choose a delegated owner. The subform then displays all the delegated owners’ records. There is also an options frame with five toggle button filter options.
I have placed a command button on the main form to print preview a report based on the records being filtered (or not filtered) per delegated owner selected. I used a macro to open the report at first, and then realized it is opening the query only without the form filter.
I did have some code that worked for just the combobox selection, but showed all records no matter the filter. I deleted it; otherwise I would post it here.
Here are the object names:
frmDelegatedOwner (main form)
cmbDelegatedOwner
cmdPreviewFilteredReport <-- the button that needs the code to run report based on filtered records.
***the issue here is that I’m not sure which ‘name’ is supposed to be used for the subform:
frmLianzi_MDR_Form_Updates – subform box (object?)
frmUpdatesSubform – actual form
The fields in the subform that are filtered by the toggle buttons are:
Progress
A-START
Report name:
rptLianzi_MDR_DataEntry-FilterByForm
Toggle buttons:
tglAllRecords
tglCompleted
tglInProcess
tglNotStarted
tglWithClient
TYIA,
Patty