puppygirl3939
Technical User
I have a main form containing the companyID and a subform to enter the counties where I am sending the company info. The subform contains a combo box with all of my counties. How can I prevent the user from selecting the county twice?
Example
Main Form - CompanyID = 25
Sub Form - Counties Referred
Orange County
Seminole County
Martin County
If the user selects Orange County again it should give them a message "You have selected this county previously. You can not enter the same county twice". The county table will contain the companyID 3 times which is okay but it should not have the countyID repeated.
Also if I can have a check box called Statewide. If Statewide = Yes then it should automatically enter 67 counties for that company ID. The counties table will have the companyID repeated 67 times but each record will contain the individual county. Please help!
Example
Main Form - CompanyID = 25
Sub Form - Counties Referred
Orange County
Seminole County
Martin County
If the user selects Orange County again it should give them a message "You have selected this county previously. You can not enter the same county twice". The county table will contain the companyID 3 times which is okay but it should not have the countyID repeated.
Also if I can have a check box called Statewide. If Statewide = Yes then it should automatically enter 67 counties for that company ID. The counties table will have the companyID repeated 67 times but each record will contain the individual county. Please help!