D
dave h
Hi,
Before I allow a row to be added to the db, I need to check to see if a row
already exists that meets certain WHERE clause criteria. The user will
have clicked a button to make the addition and I'll be adding the row via my
own code. But I need to check first before I actually execute that code.
So, how should this code look? I think the SQL should be:
Select COUNT(*) as empTotal from Employees
Using DAO how do I run that sql and pick up the resulting value that
represents the total number of rows in the Employee table. Actually, I need
a WHERE clause, but if this works there should be no problem adding the
WHERE clause.
Thanks
Before I allow a row to be added to the db, I need to check to see if a row
already exists that meets certain WHERE clause criteria. The user will
have clicked a button to make the addition and I'll be adding the row via my
own code. But I need to check first before I actually execute that code.
So, how should this code look? I think the SQL should be:
Select COUNT(*) as empTotal from Employees
Using DAO how do I run that sql and pick up the resulting value that
represents the total number of rows in the Employee table. Actually, I need
a WHERE clause, but if this works there should be no problem adding the
WHERE clause.
Thanks