G
Guest
I cannot find the answer to my problem. I have 7 fields on a form. 4 of
these fields are numeric, 2 are text and one is a checkbox (true/false). I
have all of these fields set up to automatically fill in the new record with
the same data that was entered in the last record that was completed. This
is working on all of my fields except the checkbox. What is different from
the checkbox? Below are samples of my code.
**This first sections works for the number fields
Private Sub shelf_AfterUpdate()
'copies last shelf location to new record
Me!Shelf.DefaultValue = Me!Shelf
End Sub
**This second section doesn't work for the checkbox
Private Sub consigned_AfterUpdate()
'remembers last consignment setting for new record
Me!Consigned.Checked = Me!Consigned.Value
End Sub
**This last section works for my text fields
Private Sub dateshipped_AfterUpdate()
'remembers last scout shipdate for new records
Me!DateShipped.DefaultValue = """" & Me!DateShipped & """"
End Sub
What am I doing wrong?
these fields are numeric, 2 are text and one is a checkbox (true/false). I
have all of these fields set up to automatically fill in the new record with
the same data that was entered in the last record that was completed. This
is working on all of my fields except the checkbox. What is different from
the checkbox? Below are samples of my code.
**This first sections works for the number fields
Private Sub shelf_AfterUpdate()
'copies last shelf location to new record
Me!Shelf.DefaultValue = Me!Shelf
End Sub
**This second section doesn't work for the checkbox
Private Sub consigned_AfterUpdate()
'remembers last consignment setting for new record
Me!Consigned.Checked = Me!Consigned.Value
End Sub
**This last section works for my text fields
Private Sub dateshipped_AfterUpdate()
'remembers last scout shipdate for new records
Me!DateShipped.DefaultValue = """" & Me!DateShipped & """"
End Sub
What am I doing wrong?