I
Irshad Alam
I am trying below to fill a field of a form , the code is as below :
Private Sub SlEcode_AfterUpdate()
Me.SlEDesig = DLookup("[EDesig]", "[EmpNewQ1]",
"[ECode]=[Forms]![SlFormA]![SlEcode]")
Me.SlEDesig = DLookup("[EDesig]", "[EmpNewQ1]", "[ECode]='" &
Forms![SlFormA]![SlEcode] & "'")
End Sub
I tried both the above method, none is working.
Note : EDesig is a text field, ECode is a text field
Kindly correct my above code.
Regards
Irshad
Private Sub SlEcode_AfterUpdate()
Me.SlEDesig = DLookup("[EDesig]", "[EmpNewQ1]",
"[ECode]=[Forms]![SlFormA]![SlEcode]")
Me.SlEDesig = DLookup("[EDesig]", "[EmpNewQ1]", "[ECode]='" &
Forms![SlFormA]![SlEcode] & "'")
End Sub
I tried both the above method, none is working.
Note : EDesig is a text field, ECode is a text field
Kindly correct my above code.
Regards
Irshad