Hello everyone
I have been useing Access for a while now and have attempted useing DCount a number of times but with varying results.
I am currently trying to have a field in a form that will show how many times a particular address has been entered already and has a record in a table. So i was hoping that when the user enters an address the DCount field will show how many times it has already been entered into the table. The following code was used to to no avail
=DCount("Contam ination2!Enq"," Contamination2" ,"Contamination 2!JoinedAddress =Forms![Contaminated Inpu]![joinedaddress]")
Contamination2 = Table
Contamination2! Enq = field to count (although i beleive this can change to any field in the table?)
Forms![Contaminated Inpu]![joinedaddress] = the filed on the form i want to use as the criteria.
Thanks in eager anticipation... ..
I have been useing Access for a while now and have attempted useing DCount a number of times but with varying results.
I am currently trying to have a field in a form that will show how many times a particular address has been entered already and has a record in a table. So i was hoping that when the user enters an address the DCount field will show how many times it has already been entered into the table. The following code was used to to no avail
=DCount("Contam ination2!Enq"," Contamination2" ,"Contamination 2!JoinedAddress =Forms![Contaminated Inpu]![joinedaddress]")
Contamination2 = Table
Contamination2! Enq = field to count (although i beleive this can change to any field in the table?)
Forms![Contaminated Inpu]![joinedaddress] = the filed on the form i want to use as the criteria.
Thanks in eager anticipation... ..
Comment