Search step by step in table and populate variables.

P

Peter Adema

I have one table with E-mail addresses.
Via a loop I want to go through the table record per
record and store the mailaddress in a variable. Then send
the mail.

Dim Mail

DoCmd.GoToRecord acDataTable, stDocName, acGoTo, acNext
.....store the mailaddress in variable Mail.....
DoCmd.SendObject acSendQuery, "q_aantal1", acFormatXLS,
mail, , , "Current Spreadsheet of Employees", , False
 

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