I am designing an order form and my order form consist of a main form and a subform within it. Each order can have multiple items ordered on it. To order a certain part (unique model #) i have a query set up that inputs 1 model number when 4 other variables are chosen in a combo box by the user. Currently i have done this by writing the query statement as this (in the row source field in combo box properties):
SELECT DISTINCT QryOPNData.TDP FROM QryOPNData WHERE (((QryOPNData.Rev)=[Forms]![frmSampleOrders]![Order OPN's subform]![Revision])); This is the query statment for the TDP combo box.
I have 4 variable that must be chosen to output a model number or OPN. They are Revision, TDP, Frequency, and Coherance. The user of the form currently must enter the variable in the above order. This is where i am having a problem, if a user accidently clicks on the frequency drop down before they have chosen a Revision and TDP the combo box is blank BUT the problem is that it continues to stay blank even if the user now chooses a revision and TDP. The user has to close the form and start it up again for it to work properly.
How can i get access to run the query properly even if the user accidently clicked on a combo box out of order on the form?
I'm thinking maybe an IIF statment but i am unsure on what the parameters should be of that statment.
PLEASE HELP!!!!!
SELECT DISTINCT QryOPNData.TDP FROM QryOPNData WHERE (((QryOPNData.Rev)=[Forms]![frmSampleOrders]![Order OPN's subform]![Revision])); This is the query statment for the TDP combo box.
I have 4 variable that must be chosen to output a model number or OPN. They are Revision, TDP, Frequency, and Coherance. The user of the form currently must enter the variable in the above order. This is where i am having a problem, if a user accidently clicks on the frequency drop down before they have chosen a Revision and TDP the combo box is blank BUT the problem is that it continues to stay blank even if the user now chooses a revision and TDP. The user has to close the form and start it up again for it to work properly.
How can i get access to run the query properly even if the user accidently clicked on a combo box out of order on the form?
I'm thinking maybe an IIF statment but i am unsure on what the parameters should be of that statment.
PLEASE HELP!!!!!
