I have a file with beneficiary names for life insurance. The input file has
multiple names for the member. The file format I need to load into our system
has one record per member, but has repeating fields such as name1, name2,
name3, pct1, pct2, pct3. I don't know how to do this in Access and I'm not
great with VBA code.
|
|
0
|
|
|
|
Reply
|
Utf
|
4/21/2010 9:11:01 PM |
|
Try this --
SELECT ccount, name1 AS Benificary, pct1 AS Percent
FROM YourTable
UNION ALL SELECT ccount, name2 AS Benificary, pct2 AS Percent
FROM YourTable
WHERE name2 Is Not Null AND pct2 Is Not Null
UNION ALL SELECT ccount, name3 AS Benificary, pct3 AS Percent
FROM YourTable
WHERE name3 Is Not Null AND pct3 Is Not Null
....
UNION ALL SELECT ccount, nameX AS Benificary, pctX AS Percent
FROM YourTable
WHERE nameX Is Not Null AND pctX Is Not Null;
--
Build a little, test a little.
"K Essmiller" wrote:
> I have a file with beneficiary names for life insurance. The input file has
> multiple names for the member. The file format I need to load into our system
> has one record per member, but has repeating fields such as name1, name2,
> name3, pct1, pct2, pct3. I don't know how to do this in Access and I'm not
> great with VBA code.
|
|
0
|
|
|
|
Reply
|
Utf
|
4/22/2010 4:36:01 AM
|
|
On Wed, 21 Apr 2010 14:11:01 -0700, K Essmiller
<KEssmiller@discussions.microsoft.com> wrote:
>I have a file with beneficiary names for life insurance. The input file has
>multiple names for the member. The file format I need to load into our system
>has one record per member, but has repeating fields such as name1, name2,
>name3, pct1, pct2, pct3. I don't know how to do this in Access and I'm not
>great with VBA code.
If you want to take an arbitrary number of records with different names and
generate a single record with all the names separated by commas, you'll need
some VBA. There's exactly this code available at
http://www.mvps.org/modules/mdl0004.htm
Copy and paste the code at this site into a new Module, and follow the
instructions in the comments at the site.
--
John W. Vinson [MVP]
|
|
0
|
|
|
|
Reply
|
John
|
4/22/2010 5:21:10 AM
|
|
|
2 Replies
362 Views
(page loaded in 0.07 seconds)
Similiar Articles: Merge multiple records in a field, based on criteria? - microsoft ...If you store information which has "repeating values", your ... MS ACCESS :: Combine Multiple Records' Field Value Into One Field? Combine Multiple Records' Field ... can a field populate another field elsewhere in a 07 document ...Word forms and repeating data in fields within same document ... can a field ... Feb 2008 07:12:01 -0800, Travis <Travis ... can i merge pages from multiple windows into one ... put 1/2 page merge on top of page, repeat at bottom to save paper ...... page and then copy/paste the content into page ... This permits a simple letter merge, one record per ... Printing Multiple Photos on One Page in Lightroom 2 | Printing ... ... Group - Combine Consecutive Dates into a Date Range - microsoft ...... Any recommendations?- Hide ... Group - Combine Consecutive Dates into a ... 55 Week ending date query help; Total field on ... Combine Multiple Rows into One Row using SQL Mail Merge Skips Some Records - microsoft.public.word ...Merge a field data for all records in a table into one output ..... by which I would be able to ... Mail merge multiple times on one page? - microsoft.public.word ... ... Split Table to multiple tables - microsoft.public.access.queries ...If I have a large run (ie. 100.000 recs, takes +- 10h to ... Merge a field data for all records in a table into one output ... Combine multiple records in one field in ... transfer data from multiple columns to singlr column - microsoft ...Denormalize data into one single field (by query) - microsoft ... Combining multiple columns into ... Combine multiple rows into one ... multiple rows or combine multiple ... Last record/entry from a table - microsoft.public.access.queries ...Trying to combine multiple records into one record in a Query ... ... Repeating entries on form - microsoft.public ... a form for data entry and want ... field in ... Concatenate fields without duplicating data - microsoft.public ...Example: Rec # SG_Carrier PRODUCTS ... I would like to combine 3 fields with 3 different data types ... ... Hi How do I joint 2 fields into one field without doing it ... Maximum Across Fields - microsoft.public.access.queries ...If you have 'repeating fields' (e.g., "Length1, Length2 ... Consider checking into normalizing your data ... you could use for the Max and Min across multiple fields, but ... Merge actions for fields and groups - InfoPath - Office.comMultiple-selection list box; Non-repeating XHTML field : Combine the value in the target form with the values from the source forms; Ignore blank fields How do I merge multiple selection list boxes into a single ...Keywords: How, do, I, merge, multiple, selection, list, boxes, into, a, single, repeating, field? ... concatenate all the data into one comma seperated non-repeating field ... mail merge, how to print multiple Excel records in ONE Word ...I have created one Word document that has a repeating section of information and i need to merge multiple lines of data from Excel into this ... to use a Database field to ... Combine data from multiple sheets in excel | Get Digital Help ...Match two criteria and return multiple rows Merge two columns into one list ... of all ID numbers in order (without repeating). ... to a month. each sheet has 3 fields-region ... Insert merge fields into a merge publication - Publisher - Office.comYou can insert merge fields into ... has information on multiple ... to insert the data field, and then do any of the following: To insert text into the repeating catalog merge ... 7/24/2012 5:24:30 PM
|