I have a form called Interview. When I enter a social security number in the text box named SSAN, I would like for an adjacent unbound text box currently named SSAN_TST to count how many times the social security number appears in the database. I have a query named CountSSN which counts the SSN in the query and gives me what I am looking for, however, when I use DCount in the Form I always get 0.
My DCount Syntax is:
=DCount("SSAN","CountSSN","Where SSN = '" &Forms!Interview!SSAN & "'"
Any help as to where I have messed up would be greatly appreciated.
Thanks,
Sonny
My DCount Syntax is:
=DCount("SSAN","CountSSN","Where SSN = '" &Forms!Interview!SSAN & "'"
Any help as to where I have messed up would be greatly appreciated.
Thanks,
Sonny