C
computerpilot
I am trying to complete an EXTREMELY simple operation. I have VBA that
copies a text value from one form to another (providing the field is
empty or NULL). Both fields are EXACTLY the same (same properties in
both the table and form).
I can get this to work in any other form using the same code and
fields. However, whenever I run it in a particular form I have
created, it gives me a 'Run-Time Error 13' message.
Here is my simple code:
Private Sub Form_Current()
If IsNull(Me.Print_Order_User) Then [Print_Order_User] = Forms![Main
Menu].Print_Order_User
End Sub
I know that the Run-Time Error 13 message relates to passing a value
that does not have the same properties, but I swear that I checked
everything. Is there something else I am missing? FYI: The Form, "Main
Menu" is still open, only not visible during the code execution.
Thank you so much for your time and I look forward to hearing your
advice!
copies a text value from one form to another (providing the field is
empty or NULL). Both fields are EXACTLY the same (same properties in
both the table and form).
I can get this to work in any other form using the same code and
fields. However, whenever I run it in a particular form I have
created, it gives me a 'Run-Time Error 13' message.
Here is my simple code:
Private Sub Form_Current()
If IsNull(Me.Print_Order_User) Then [Print_Order_User] = Forms![Main
Menu].Print_Order_User
End Sub
I know that the Run-Time Error 13 message relates to passing a value
that does not have the same properties, but I swear that I checked
everything. Is there something else I am missing? FYI: The Form, "Main
Menu" is still open, only not visible during the code execution.
Thank you so much for your time and I look forward to hearing your
advice!