Can anyone help me figure out what I'm doing wrong here:
RecCount = DCount(strTotTableName & "!effdate", strTotTableName, strTotTableName & "!effdate = " & M & Y)
strTotTableName, M, and Y are my variables. I'm sure this has to do with the quote marks, but I have tried several things and can't seem to get the syntax right.
Brian
RecCount = DCount(strTotTableName & "!effdate", strTotTableName, strTotTableName & "!effdate = " & M & Y)
strTotTableName, M, and Y are my variables. I'm sure this has to do with the quote marks, but I have tried several things and can't seem to get the syntax right.
Brian