(Edited by HansV to activate link to post – see Help 19)
You very kindly gave me the coding for my Multiselect Listbox problem in post 250291 but I have progressed this a bit and need further help. I have added an extra column to my listbox column, containing a figure per record. I want to SUM these figures, based on the selections made by the user. (I’ve tried achieving this by using DSUM or DLOOKUP on the SUM field in a query but am obviously not getting the syntax right so would rather not go down this route!) When I use the code you gave me for adding the postcodes together as a string, it does the same for the numbers, e.g. “7702, 6702”, rather than “14404” which is what I need. I assume it needs completely different code to handle numbers, rather than text? Once I have managed to get the sum of figures, I need to store these (yes, I really do!) so that I have a record of figures at that time, not the current situation. I want to be able to record “this particular letter went to these areas, on that date, with a total mailing quantity of X”
Perhaps I’m going about this the wrong way. All the addresses are stored per area, in approx. 130 separate Excel tables. I have one separate Excel file containing a non-blank record count for each address table. This record-count table is linked to a corresponding Access table which is where the figures in the multiselect listbox column come from. This is probably far more complicated than it needs to be but I don’t know how else to get the information. One major drawback is that every time I open the record count Excel file, it takes forever to open as it is linked to all 130 separate tables. I need the record counts to show current information for any new letter records added to the Access Letters table so I have linked, rather than embedded.
Any suggestions for a better way to do this would be appreciated, bearing in mind I’m not a code writer but can just about cut and paste what you give me!
Regards,
Sue