Option Group in Access 2000

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

There is a form of car for staff. The fields are Registration Number, Make,
Year.

It is required to create an option group to show whether the car is
available. I have attempted to use the option group wizard, should I assign
1 to Yes and 0 to No. How can I make the car not available ? For instance,
to make the 3 fields are not editable ?

Thanks
 
Strikes me that you need a boolean field (a "Yes/No" field), and use a check
box to indicate the status, not an option group.

In the form's Current event and in the check box's AfterUpdate event, put
code like:

Me.txtRegistrationNumber.Locked = Me.chkAvailable
Me.txtMake.Locked = Me.chkAvailable
Me.txtYear.Locked = Me.chkAvailable
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

access help with time 1
Access Create option group without using wizard? 2
Staff Availability 5
Park and Ride in to Central London? 2
Option Group 22
Roof Box Recommendations 11
Access Remove rows based on multiple fields 2
Dlookup question 4

Back
Top