superfly5203
Registered User.
- Local time
- Today, 16:36
- Joined
- Apr 5, 2016
- Messages
- 43
I have a query that get its parameters from a form, and everything except one thing is working great, thanks to the many suggestions from this forum. However, I have one last problem that is giving me a headache.
I have a combo box that has 7 options, one for each "stage" a record is in. In SQL i have the following statement:
What I need to happen is, when the user selects one of the options from the combo box, for example "PPM Complete" the last part of my statement would change to tblChangeDates.actualPPM or whatever else corresponds to their selection. This way they can select what stage they want to look at, instead of being forced to look at the hard coded stage. Right now my combo box values don't directly correspond to a field name, so I know i have to make those match up, but I just can't figure out how to make this work.
Thanks for any suggestions.
I have a combo box that has 7 options, one for each "stage" a record is in. In SQL i have the following statement:
Code:
"WHERE tblChangeBasic.contract IN(" & strCriteria & ") AND tblChangeTypes.TypeCode IN(" & strCriteria2 & ") AND tblChangeDates.actualdef BETWEEN [Forms]![Date_Search]![startdate] and [Forms]![Date_Search]![enddate] ; "
What I need to happen is, when the user selects one of the options from the combo box, for example "PPM Complete" the last part of my statement would change to tblChangeDates.actualPPM or whatever else corresponds to their selection. This way they can select what stage they want to look at, instead of being forced to look at the hard coded stage. Right now my combo box values don't directly correspond to a field name, so I know i have to make those match up, but I just can't figure out how to make this work.
Thanks for any suggestions.