Hi,
I am working on a function to identify outlook email recipients that wont render, and put them into a table.
I am new to VBA, and know how to simply insert records into a table. But this kind of variable is getting me stuck.
The variable .To contains the whole list of "email recipients"
The variable objOutlookRecip.Name is what I want to insert into a table called "BadEmailIDsTbl" which is just 1 column.
But I cant get an INSERT qry statement to work with that variable name in the loop.
Is AddNew an option? I just cant get the syntax right
Another thing I tried was to take the function name "checkAllEmails" and use that with in insert qry at the end because that just contains all the "bad" email values
You can INSERT attempt at the bottom of my screenshot, but that gives me a 3035 system resource exceeded error. Def. misleading because it should only be about 4000 records its trying to insert.
I am working on a function to identify outlook email recipients that wont render, and put them into a table.
I am new to VBA, and know how to simply insert records into a table. But this kind of variable is getting me stuck.
The variable .To contains the whole list of "email recipients"
The variable objOutlookRecip.Name is what I want to insert into a table called "BadEmailIDsTbl" which is just 1 column.
But I cant get an INSERT qry statement to work with that variable name in the loop.
Is AddNew an option? I just cant get the syntax right
Another thing I tried was to take the function name "checkAllEmails" and use that with in insert qry at the end because that just contains all the "bad" email values
You can INSERT attempt at the bottom of my screenshot, but that gives me a 3035 system resource exceeded error. Def. misleading because it should only be about 4000 records its trying to insert.