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

Yes / No Field

Status
Not open for further replies.

kevmeister

Technical User
Mar 10, 2006
3
GB
Hi There,

Just want to know if this is possible:

I want to setup a simple yes/no field.

By default the field is ticked (default value = Yes)

In the records view, I can then un-tick the box.

BUT I AM NOT ALLOWED TO RE-TICK THE BOX, ONCE UN-TICKED, IT IS UN-TICKED FOREVER.

Is this possible, i was thinking of using validation, but it wont allow the default value to be used if I set validation to "No".

Is this possible?

Thanks

Kevin
 
set the default value to true.
Private Sub blnFld_BeforeUpdate(Cancel As Integer)
If Me.blnFld Then
DoCmd.CancelEvent
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top