Hi,
I am using dlookup to retrieve value from table. I have set after-update even when user select a department name and got the department id into the field by using dlookup.
Just the problem is when apostrophe is used in department name it gives error.
Can anyone give solution how to solve the issue.
Thanks and waiting of your kind response.
I am using dlookup to retrieve value from table. I have set after-update even when user select a department name and got the department id into the field by using dlookup.
Code:
Me.DepID = DLookup("DepID", "DepMain", "DepName.value='" & Me.Department.Value & "'")
Just the problem is when apostrophe is used in department name it gives error.
Can anyone give solution how to solve the issue.
Thanks and waiting of your kind response.