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

Set the value of a checkbox on a sub-form.

Status
Not open for further replies.

weightinwildcat

Programmer
May 11, 2010
84
0
0
US
I am using the following code to set the value of a checkbox on a sub-form:

If Not IsNull(Forms![Ship Partial Form].[Ship Partial Subform Two].Form.DateShippedTextbox.value) Then
Forms![Ship Partial Form].[Ship Partial Subform Two].Form.ShipPartialCheckbox.value = True
Else
Forms![Ship Partial Form].[Ship Partial Subform Two].Form.ShipPartialCheckbox.value = False
End If

The default view is Continuous Forms.

IF the current record has a Date value in the DateShippedTextbox then the check boxes will show a checkmark for ALL the records. Likewise, if there is NOT a date value, the check boxes will NOT show a checkmark for ANY of the records. Is there a place where I can put this code where things will show up correctly?
 
is the ShipPartialCheckbox bound or unbound
 
It is bound to a calculated field, as follows:

IsShipped: IIf(Not IsNull([DateShipped]),True,False)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top