S
SharonInGa
The selection of one of these fields creates the key field. This field
inputs into a table with a mahy to many relationship. A customer may have a
PO# or a BOL# or both. A PO# takes priority over a BOL#. The process works
great if you are in the record only once. However, an error message appears
saying that there is a problem with the field relationship if you go back
into the record for whatever reason. What event should this code go in or
what can I do differently?
fieldOne, fieldTwo, BOL#, POL#, (Invisible) KeyField
Private Sub PO__LostFocus()
If Me.BOL_ > 1 Then
Me.MerchandisePO_ = Me.BOL_
Else
End If
If Me.PO_ > 1 Then
Me.MerchandisePO_ = Me.PO_
End If
End Sub
inputs into a table with a mahy to many relationship. A customer may have a
PO# or a BOL# or both. A PO# takes priority over a BOL#. The process works
great if you are in the record only once. However, an error message appears
saying that there is a problem with the field relationship if you go back
into the record for whatever reason. What event should this code go in or
what can I do differently?
fieldOne, fieldTwo, BOL#, POL#, (Invisible) KeyField
Private Sub PO__LostFocus()
If Me.BOL_ > 1 Then
Me.MerchandisePO_ = Me.BOL_
Else
End If
If Me.PO_ > 1 Then
Me.MerchandisePO_ = Me.PO_
End If
End Sub