If record exist

RickR

Registered User.
Local time
Today, 19:16
Joined
Mar 13, 2002
Messages
14
Hello All,

I'm trying to find out if a record exists in a table. I have searched and found several methods, but I have not been successfull in making any of them work.

Here is how I want to implement it; I want to check in a log table to see if an archive has been made for a paticular month. The records are date fields.
If the date exisits I want to end the subroutine, if not, follow thru with it.

The variable I want to look for is
- Format(Date - 90, "mmmyy")

That way the archive will only take place once a month.

Thanks a lot for the help,

Rick
 
Try the Dcount function. If it is greater than 0, the record exists.

Example: If DCount("FieldName","TableName","FieldName = #" & DateInQuestion & "#") Then...
 

Users who are viewing this thread

Back
Top Bottom