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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sellect one item so that the other options are frozen.

Status
Not open for further replies.

justagrunt

Technical User
Oct 10, 2002
132
0
0
Hi,
On a price list form, I have a number of selections, they are tick boxes. If I choose one I would like the others in the list to become inactive, and because I chose this one other selctions on the page are now able to be picked and others not.How does one in code, say that if i choose this one the others are now frozen or inactive.
Kind Regards
Bill
 
Bill:

Here is an example using two check boxes named chk1 and chk2. When the user updates chk1 the code will either enable or disable chk2 depending on whether the value for chk1 is true or false. Hope this helps.

Private Sub chk1_AfterUpdate()

If Me.chk1 = vbTrue Then

Me.chk2.Enabled = False

Else

Me.chk2.Enabled = True

End If

End Sub
 
Hi

Isn't this what an option group does automatically?

Try putting a frame on your form using the wizard Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top