Epsilon101
Programmer
Hi,
I have a form used to create a filter for a report, what i want to try and do is to display the information from one of the unbound textboxes, in my report.
Below is an example of my thoughts on doing this.
IsLoaded is a function in one of my modules that checks if txtbox is empty, null and lots more.
What i have found is that .controlsource isnt a selectable option in vba but its there when i look at the text boxes properties in the report.
TxtIntroducers is the txt box in the report
TxtIntroID is the text box on the form
I use the report normally and with a filter, so if its filtered i need it to show which have been filtered, if not then just say ALL.
Any help would be great
---------------------------------------
Neil
I have a form used to create a filter for a report, what i want to try and do is to display the information from one of the unbound textboxes, in my report.
Below is an example of my thoughts on doing this.
IsLoaded is a function in one of my modules that checks if txtbox is empty, null and lots more.
What i have found is that .controlsource isnt a selectable option in vba but its there when i look at the text boxes properties in the report.
TxtIntroducers is the txt box in the report
TxtIntroID is the text box on the form
I use the report normally and with a filter, so if its filtered i need it to show which have been filtered, if not then just say ALL.
Code:
Private Sub Report_Open(Cancel As Integer)
If IsLoaded("FrmKPIFilter") Then
Me.TxtIntroducers.controlsource = Form!FrmReportFilter!TxtIntroCriteria
Else
Me.TxtIntroducers = "All Introducers"
End Sub
Any help would be great
---------------------------------------
Neil