I am having problems with using the IIf/dlookup command in my recordsource query. Is it possible to use this within VB? it works as a regular query. I tried to fix the quotes, etc, but it didn't seem to fix the problem.
Thanks!
Code:
me.form.recordsource = "SELECT [Table].[Number], [Table].[SubNumber], " & _
"IIf(nz(DLookUp('[ID]','Revisions','[Number] = '" & _
"[Table]![Number] & "''),False)<>False,True,False) AS Test " & _
....and so on
Thanks!
Comment