I have a main form named main and a subform named sub. In sub I have a text box named txtresult and I am using a DLookup to show query results and this work fine when just running sub. However, when I load main the txtresult text box shows #Error. I know this has to do with my DLookup syntax but I am unclear on what to use.
My current DLookup syntax is =DLookUp("pscodename_vc","qrypsname")
this is set in the control source for the text box. Any help would be appreciated.
My current DLookup syntax is =DLookUp("pscodename_vc","qrypsname")
this is set in the control source for the text box. Any help would be appreciated.