I am receiving a Run-time error 2176 on a DLookup only when searching executing through a form. (Using Access 2010)
I have supplied my code to be as 'hard coded' as possible to remove the possibility of errors on the form.
Text11.SetFocus My code: Me.Text11.Text = DLookup("[Netherlands]", "Templates", "[Template]= 'SimpleGreeting'")
The weird part: If I run this in the Immediate window it returns the rich text I would like to use
? DLookup("[Netherlands]", "Templates", "[Template]= 'SimpleSuppression'") Some text .... so on and so forth