S
Sangeetha
Hi,
I have a form, which has a certificate number and company ID. I want to
disallow the user to enter duplicate certificate number in the same company
ID. In other words, the certificate number can be the same , for different
company ID.
I made the following macro, and linked it to the after update event of teh
field [certno]. It is not working.
DCount("[certno]","[01_certificate_validate]","[certno]=form.[01_shareholder_sf]")>1
where, [certno] is the fielsd,w hich I need to validate
[01_certificate_validate] is the query, which shows the certificate number
for the current company ID
[01_shareolder_sf] is the form, whcih is currntly loaded , where certno
field exists
please help.
I have a form, which has a certificate number and company ID. I want to
disallow the user to enter duplicate certificate number in the same company
ID. In other words, the certificate number can be the same , for different
company ID.
I made the following macro, and linked it to the after update event of teh
field [certno]. It is not working.
DCount("[certno]","[01_certificate_validate]","[certno]=form.[01_shareholder_sf]")>1
where, [certno] is the fielsd,w hich I need to validate
[01_certificate_validate] is the query, which shows the certificate number
for the current company ID
[01_shareolder_sf] is the form, whcih is currntly loaded , where certno
field exists
please help.