Hello everybody
I made a form where i need to take a name by giving just the id. So i gave the Dlookup commnad but there is an error "data type mismatch in criteria expression". Can anybody please help
I made a form where i need to take a name by giving just the id. So i gave the Dlookup commnad but there is an error "data type mismatch in criteria expression". Can anybody please help
Code:
Private Sub Command97_Click()
Me.PtName = DLookup("Baby_Name", "tblFollow_up", "Study_ID='" & Forms!FrmPtAmount!ID & "'")
End Sub
Last edited: