Hi
I am trying to set up a DCount but am getting compile error saying DOSETTE is variable not defined.
I thought I had set the inverted commas and ampersands correctly for text but clearly not. Have tried various options but they are almost infinite and not getting anywhere.
Any help would be much appreciated.
Thanks in advance
I am trying to set up a DCount but am getting compile error saying DOSETTE is variable not defined.
Code:
varLabCount = DCount("lngPtId", "qryDispLab", "strSupLast Is Null Or strSupLast<>" & "'" & DOSETTE & "'")
I thought I had set the inverted commas and ampersands correctly for text but clearly not. Have tried various options but they are almost infinite and not getting anywhere.
Any help would be much appreciated.
Thanks in advance