Johnnycat1
Programmer
I am trying to filter the data in a subform based on a combo box "Combo16" in the main form. The code that I am using is:
DoCmd.ApplyFilter , "Forms!FrmBallastTracking!FrmBallastTrackingSubform![Project Name] = Forms!FrmBallastTracking![Combo16]"
The error that I get is that the form is not based on a table or query.
What am I doing wrong? Is there a simple way to filter a subform when the main form is not based on a query?
DoCmd.ApplyFilter , "Forms!FrmBallastTracking!FrmBallastTrackingSubform![Project Name] = Forms!FrmBallastTracking![Combo16]"
The error that I get is that the form is not based on a table or query.
What am I doing wrong? Is there a simple way to filter a subform when the main form is not based on a query?