Below is the code I have on a subform (MainEntryQrySelectSubFRM1).
Can someone tell me what is wrong with this code? When I
click the next button I want the Value in the Method10
field to change according to what the Pull Code Value is
in the query for that record. I am not sure if I explained
this very well.
Can someone tell me what is wrong with this code? When I
click the next button I want the Value in the Method10
field to change according to what the Pull Code Value is
in the query for that record. I am not sure if I explained
this very well.
Code:
Private Sub Next10_Click()
On Error GoTo Err_Next10_Click
DoCmd.GoToRecord , , acNext
Me.Method10.Value = _
DLookup("[Method]", "ReplenishMethodTbl", "[PullSeqCode] = '" & _
DLookup("[Pull Code]", "MainEntryQrySelectSub1") & "'")
Me.Signal10 = Blank
Exit_Next10_Click:
Exit Sub
Err_Next10_Click:
MsgBox Err.Description
Resume Exit_Next10_Click
End Sub