thefourthwall
IS-IT--Management
I created a form for users who drop off pc's to be repaired.
Sometimes the person dropping off the pc is not the owner, and to capture that, I have "Contact" and "Drop Off Person" fields and a checkbox that, when checked, copies certain "Contact" fields' values to corresponding "Drop Off Person" fields.
One oddity, however: the "drop off" phone number field does not show as updated after clicking the checkbox, unless I tab through the fields. Same for clearing the checkbox.
I have compared the data format, field sizes, input masks, and so on, and have come up empty.
Why is this happening?
Below is the on_click event code behind the checkbox; it probably is kludgy, if you have any suggestions around cleaning it up, I want to learn.
Thanks for your help.
Sometimes the person dropping off the pc is not the owner, and to capture that, I have "Contact" and "Drop Off Person" fields and a checkbox that, when checked, copies certain "Contact" fields' values to corresponding "Drop Off Person" fields.
One oddity, however: the "drop off" phone number field does not show as updated after clicking the checkbox, unless I tab through the fields. Same for clearing the checkbox.
I have compared the data format, field sizes, input masks, and so on, and have come up empty.
Why is this happening?
Below is the on_click event code behind the checkbox; it probably is kludgy, if you have any suggestions around cleaning it up, I want to learn.
Thanks for your help.
Code:
Private Sub CheckCntctYesNo_Click()
If Me!CheckCntctYesNo Then
Me!DropOff_User_Rank = Me!User_Rank
Me!DropOff_First_Name = Me!Contact_First_Name
Me!DropOff_Last_Name = Me!Contact_Last_Name
Me!DropOff_Phone = Me!Phone
Me!DropOffTZS = Me!ContactTZS
Else
Me!DropOff_User_Rank = ""
Me!DropOff_First_Name = ""
Me!DropOff_Last_Name = ""
Me!DropOff_Phone = ""
Me!DropOffTZS = ""
End If
End Sub