Click here to Skip to main content
15,667,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an access database that i need ensure that data is entered correctly
two combo boxes, one for sex(M/F) the other for pregnancy. if the option "Male" is chosen the "pregnancy" is automatically set to "no" and if "female", the options of "yes" and "no" are left available.

thanks in advance

1 solution

For Gender combo first need to assign values assume that-- 1 for male,2 for female
and Pregnancy combo can be disabled and values are --- 1 for yes , 2 for no

now based on the gender selection you can use
pregnancycombo.selectedvalue(1) -- if female selected
Share this answer
Ondeda 11-Feb-11 7:02am    
The gender values are picked from a table. so are the 1 and 2 you are referring to their ID's in the table?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900