I have a query that finds duplicate records and the number of each duplicate there is, listed below
SELECT dbo_INV_INFSVC.CS_NUM, Count(*) AS Expr1
FROM dbo_INV_INFSVC
GROUP BY dbo_INV_INFSVC.CS_NUM
HAVING (((Count(*))>1));
What I need is to let the user know if there is a record in the table with the number they have enetered as a id. It would be great to have a messgae box come up after they tab off the txt box alerting them.
Field name is CS_NUM.
SELECT dbo_INV_INFSVC.CS_NUM, Count(*) AS Expr1
FROM dbo_INV_INFSVC
GROUP BY dbo_INV_INFSVC.CS_NUM
HAVING (((Count(*))>1));
What I need is to let the user know if there is a record in the table with the number they have enetered as a id. It would be great to have a messgae box come up after they tab off the txt box alerting them.
Field name is CS_NUM.