Working with Y/N checkboxes

K

Kema

On an Orders Database, I track which lines are complete
in ORDERDETAILS with a Y/N checkbox [LineComplete].

I also track which ORDERS are complete with a Y/N
checkbox [OrderComplete]on the Orders Form.

Obviously an order can not be complete without all lines
being completed.

I want to allow the [OrderComplete] check box in Orders
to be checked ONLY when ALL [LineComplete] checkboxes in
OrderDetails have been checked for that order.

Thaks for the help.
 
N

Niklas Östrergren

Try this:

Me.[OrderComplete] = Me.[LineComplete]

If [ORDERDETAILS ] is a subform of form [ORDERS ] you should use this code
instead:

Me.[OrderComplete] = Me.Forms.[ORDERDETAILS ]![LineComplete]

Where Me.[OrderComplete] is the checkbox (Yes/No, Boolean) you want to
update depending on
checkbox [LineComplete].


// Niklas
 

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