Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding code to option buttons

Status
Not open for further replies.

mbutu

Technical User
Aug 30, 2002
9
KE
I have created two option buttons in a MSAccess form i.e. Manufacture & stocks. if the product is from stocks then the system should not calculate the bill of materials.I need to add code to implement this how can I go about it
 
One way is using an if statement e.g.

if youroptiongroup.value=1 then
'do something
elseif youroptiongroup.value =2 then
'do the other thing
else
'do nothing
end if

Hope this gets you started

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top