Hi
I have form where i am trying to call the image based on combo box selection its employee image.
1. Field Name EmpID is number field.
2. Field name Picture is text field which hold the file path of employee on computer.
my code is below but its showing data type mismatch error "3464"
thanks & regards,
MA
I have form where i am trying to call the image based on combo box selection its employee image.
1. Field Name EmpID is number field.
2. Field name Picture is text field which hold the file path of employee on computer.
my code is below but its showing data type mismatch error "3464"
Code:
Private Sub cboEmpID_AfterUpdate()
image.Picture = Nz(DLookup("[picture]", "tblEmployees", "[EmpID]='" & Me.cboEmpID.Value & "'"), "")
End Sub
thanks & regards,
MA