I gave that a thought. However, I am writing this for end-users who may unwittingly delete "Unassigned". If I manually turn-off RI, everything works. But I don't think RI can be turned-off/on using code.
I am using code to add a record to a table - CUSTOMERS. CUSTOMERS is related to table SALESREP by a (SALESREP) one to (CUSTOMERS) many, on field REPID. I can't figure how to indicate that although a relationship exists, there does not have to be a REPID in the CUSTOMER table. I get an error...
It could be this simple:
From the BeforeUpdate event for the data entry form build code similar to this:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.Computer = MachineName
End Sub
"Me" references the open form
"Computer" references your field, which I assume is the field name of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.