Below is the code I am using to fill in a field on my form.
I have many Method types to lookup "001" is the example
below. I also have "002", "003", etc. etc. My question is
Is there away to look up the different method types in
one Dlookup and populate the (Me.Method10) field with the
proper field from the Table or do I have to put in this
code for every different method type?
I have many Method types to lookup "001" is the example
below. I also have "002", "003", etc. etc. My question is
Is there away to look up the different method types in
one Dlookup and populate the (Me.Method10) field with the
proper field from the Table or do I have to put in this
code for every different method type?
Code:
If DLookup("[Pull_Seque]", "MainEntryQrySelect") = "001" Then
Me.Method10 = DLookup("[Method]", "ReplenishMethodTbl", "[PullSeqCode] = '" & "001" & "'")
End If