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

Update a text box label for two synchronize forms

Status
Not open for further replies.

aberrio

Programmer
Jun 25, 2001
1
US
Hi!

We have a main form with two subforms. The first subform display records related with a plan date for departments and products for a manufacturing area. The second subform is synchronize with the first one in order to display records for the On Current department/product record of the first one.

On the first subform we have a field named Difference(with a total of NumofLots) and a text box label "Coding Misses Unassigned". The idea is to turn off the text box field when the SumofNumLots(hide field) field on the second subform get the same number of the current record on the first subform(this is when all the code misses are assigned).

We write on the After Update option of the second subform the following instructions:

If Me.SumNumLots.Value = Forms![MMS75 Form]![MMS75s37 Subform].Form![Difference] Then
Forms![MMS75 Form]![MMS75s37 Subform].Requery
End If

When the user enter the final total of numlots and this quantity get the same value of the difference field of the first subform the above instructions should requery the first subform and the Coding Misses label should turn off. But this never occurs. We also try this on the AfterInsert option of the second form.

What are we doing wrong? Or anyone has a better idea to turn off the text box field of the first subform.

Thanks for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top