After Subform Update, Check Box on Parent Form True

G

Gabby Girl

I was wondering if the following is possible?

My subform (fsubSupplier) has a "Price" field, which once that is filled
in/updated I want a checkbox (Inv2006) on my main form (frmPartDetail) update
to true.

I know I have to put the code in the After Update of my "Price" field but
not sure where to go from there.

Can anyone help me?

Thanks Kindly
Gabby Girl
 
K

Klatuu

You will need to do this in two places.
First, in the After Update event of the Price control (field)
If Not IsNull(Me.Price) Then
Me.Parent.Inv2006 = True
Else
Me.Parent.Inv2005 = False
End If

or

Me.Parent.Inv2006 = Not IsNull(Me.Price)

You will need the same code in the Current event of your sub form.
 

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