That was what I was going to try next… and yes it worked.
I need to clean up the email in the database.
Thank you so much.
How would you display this in a report? You could simply add a text box and set it's control source property to:
=Concatenate("SELECT Email FROM IndividualInformation WHERE Email is not Null",";")
Bingo, now I just have to get this into a query and onto a report.
Thank you very much.
The error message says it all. Apparently you have some blank/Null emails?
? Concatenate("SELECT Email FROM IndividualInformation WHERE Email is not Null",";")
When I enter the string ? Concatenate("SELECT Email FROM IndividualInformation",";")
While in the module modConcatenate I get an error 94, Invalid use of Null. This is line that turns yellow.. strLastValue = .Fields(0)
Conceptually I am not completely following.
The code in the Debug window is calling the procedure in the module? and that is having a problem with a null value?
Open the debug window (press Ctrl+G) and enter:
? Concatenate("SELECT Email FROM IndividualInformation",";")
Yes, I am working in Switzerland until at least the end of the year. I've been here about 3 1/2 months already and loving it. I prefer the flat biking in Minnesota but the scenery is spectacular around Vevey.
Duane Hookom, MVP
I can’t seem to get it to work for just one table
The module is in and compiles.
I can’t seem to get the concept to work for one field in one table.
Table - IndividualInformation
Field - Email
Any additional thoughts.
Are you really in Switzerland, all the way from MN?
I prefer to use a generic function that can be used to concatenate and field or fields from any tables/queries.
Try this function: http://www.tek-tips.com/faqs.cfm?fid=4233
Your expression might be something like:
Concatenate("SELECT Email FROM tblCustomers WHERE Active = 'T'", ",")
I have a query that pulls the name of all the names of individuals that have an Individual Health Insurance policy with us. The query also pulls the associated email address.
This is all in the standard datasheet view. I am trying to figure out how to get the emails I a format that I can just copy into the address section of a Microsoft outlook email and send out one email to all our customers. (about 100 total)
Is there any way to extract these emails in a format that I can cut and paste into an email?
Posted by: "Bill Singer" <Bill.Singer@at-group.net>
|Reply via web post||•||Reply to sender||•||Reply to group||•||Start a New Topic||•||Messages in this topic (12)|