checking for file in CONDITION

H

HX

I used to use the following as a condition in a macro -- if the filename
wasn't found, the macro ended. Is this method of looking for a file no
longer supported? I pulled up this old code to use in a new situation, and
the program keeps giving me an error:

Condition:

Dir("c:\sd_data\sdc" & Format$(Date(),"yyyymmdd") & ".txt")=""


Error:

The expression you entered has a function name that [my program name] can't
find.

Help?!

Access 2003 PE SP2

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top