Match names in file and datababase, then send email w/ attachement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I go through a list of files in a directory, match each of the files
names to the names in the ms access table, and then send each match up an
email with the file as an attachment?
 
Use the Dir function to loop through the files in the directory. There is a
good example of how to do that in VBA Help.

Then, for each file name, do a DLookup in your table to see if it matches.
If it does, send the e-mail; otherwise, move on to the next file name.
 

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

Back
Top