on/off button?

D

Don

Okay, this may sound a bit wierd, but, here goes. I need
to add a button that when clicked sets a property on or
off. What I am going for (final product) is a simple
interface for a job tracking system in a quick print/copy
shop situation. Help?
 
A

Armen Stein

Okay, this may sound a bit wierd, but, here goes. I need
to add a button that when clicked sets a property on or
off. What I am going for (final product) is a simple
interface for a job tracking system in a quick print/copy
shop situation. Help?
Hi Don,

It seems that you want an actual button, not the normal checkbox that is
often used for a true/false field.

In the On Click event of the button, you can add some code to check the
field (I think that's what you mean by "property") and set it to it's
opposite value. For example:

If Me.MyField = "A" Then
Me.MyField = "B"
Else
Me.MyField = "A"
End If

Hope this helps,
 

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

Top