Mailmerge with Dynamic Table
Hi there
I have a long list of data in an Ms access which I need to mailmerge into letters to send to recipients.
data source
The challenge I am facing is that I need it to send only one email per unique "Name", but for the email to present a dynamic table which lists all of the devices, alongside their number. The number of devices per person varies. For example, my dream output from the data above would be two emails: one to Joe Bloggs, and one to John Smith, with the following text:
**
Hi Joe Bloggs
I have noticed you have the following devices registered to your name:
from the data source
Please let me know if you still need these devices and if not, I will switch them off.
Thanks,
Joe.
Related
I am working on an MS Access report. It is about employee service records. This report asks a parameter which is the ID of the staff member and displays multiple records of its punishments. What I wanted was to skip a serial number of records based on type of punishment. For instance, I do want to skip number for a punishment that contains word 'aside'. So for this, I have added a serial number using a textfield making its control source=IIf([PType] Not Like "*aside*",1,0) its result like this.
The problem here is number 5 is repeating 2 times(as it contains 'aside' string). But I want that highlighted row shouldn't contain any number and next two to it should be numbered 6 which is correct already. My background is from MS SQL server. I can't handle complex VB code.
How do I split a table into two tables? For example, I have a form of classes (in school) and semi form of students that study in the same class (just first and last name), and made a report for this form that above there are the details of the class and below there is a table of all the students with their name and last name. I wanted to ask how do I split the table to not continue page number 2
if I have alot of students so when the table reach the end of the page it will continue on the other side of the page (small table)?
I don't think you actually want to split the tables if you are designing a report. What you want to do is adjust the report so that the field for Class the students are studying is in a group header. In design mode, click "add a group" and then select the Class field. Then below that is where you will want to put the first and last names in the detail part.
You can also adjust where the pages split and you will need to play around with the design view options to get exactly what you want.
Ultimately, I think you want your report to look something like this:
Geometry
Josetta
Scott
John
Mark
English
Scott
Josetta
History
John
Mark
I have a table to which new records will be added from a spreadsheet in bulk using Access's import function. Sometimes, the new records will be refer to the same person and I would like to merge them.
Please could someone explain to me how to do this?
(I am an Access novice but have some experience with Excel and Excel vba)
The data is structured like this:
Key First Name Last Name Date Attended Email Address Contactable?
1 Joe Bloggs 1/1/2001 j#blogs.com True
2 Joe Bloggs 9/10/2004 j#blogs.com False
Ideally, it would be merged such that:
the email address must be the same
the first and last names must be the same
the most recent 'contactable' field is retained
dates attended are all stored (ie several values in this field for each record).
Thanks for your help in advance!
I have a number of CSV files with hundreds of columns and about 50,000 rows (when opened in Excel). The column headers are almost identical however some column headers may vary from one CSV file to the next, as an example below:-
CSV1
Name Surname DOB
John Smith 31/01/1989
CSV2
Name Age Surname Address DOB
Paul 29 Jones 123 Smith St 30/12/1981
CSV3
Name Surname Address Telephone
Mick Jones 123 Paul St 0123456
Is there any way I can merge all of these into one big CSV file, appending the headers so that in the one main CSV, I would have the headers "Name, Surname, DOB, Age, Address, Telephone" for example and then the respective entries from each CSV falling within their respective column heading. The reason I want to do this is to then populate the information into a big MySql / Sql Server DB table and so it appears easier to do it all initially as one big CSV before importing.
Any suggestions?
Import them into three temporary tables and then merge them into one table using joins on name surname and DOB. Otherwise the data will get all mixed up.
Manual method (bear with me, just giving an idea of the algorithm):
Generate a final list of columns that includes all possible headers in all CSV's.
Open each spreadsheet, one at a time. For each spreadsheet:
Click and drag the headers and insert missing columns so they all match your list from #1
Save the file, and repeat back to #2
Combine all the spreadsheets into a single spreadsheet.
Import.
If you are going to automate this, you will take roughly the same steps. You need a way to determine what all columns are possible, then put the CSV's in the right format and combine them, either in spreadsheet/CSV format, or import them as a bunch of temp tables, and INSERT...SELECT to re-arrange the columns where they belong.
What languages/technologies do you have available to you for the automation? .NET? Java? PHP? How often will this process occur, and how automated does it have to be? Is it a daily process, or weekly, or only going to happen once? How many spreadsheets roughly?
I have a combobox which looks at a table and displays it's 5 columns of data via a query to be used like a search, on most pc's all 5 columns populate with data but on some only the last 3 columns populate and it displays blank FirstName and Surname columns, any idea how this could happen or how to fix it?
Also the combobox isn't used to select just to confirm that searched for people are in the database so there are no events and it is all setup in the combobox properties.
Edit- I bet a post topic like this could stack up those tumbleweed badges if one could get more than 1 of em.
There could be two causes.
One possibility is that the number of rows being returned in a query is not the same as the combo box Column Count property. If you are changing the combo box Row Source property make sure the updates have the same number of columns. MS fixed this bug but I'm not sure when it was fixed.
More likely though is that the PCs in question don't have the following hotfix installed.
Description of the Access 2003 post-Service Pack 3 hotfix package: December 18, 2007