database+courses+london - combining fields into one

Forum home » Delegate support and help forum » Microsoft Access Training and help » database+courses+london - Combining Fields into one row

database+courses+london - Combining Fields into one row

resolvedResolved · Low Priority · Version Standard

Karen has attended:
Access Intermediate course

Combining Fields into one row

I have created a query with 3 "or" criteria in separate column fields. This has created 3 rows for each item. How can I create a query or report that combines the 3 rows into one row so that the column fields are side by side?
Ie, Convert from:
Column1 Column2 Column3
Row 1a abc
Row 1b def
Row 1c ghi

to

Row 1 abc def ghi

Thanks
Karen

RE: Combining Fields into one row

Hi Karen

Try and use the following function to join the fields together

1. Go to a new field in your query.

2. Type a name for your field in the first row
ie. MyfieldName:


3. Then ADD the fields together as follows
Field1 +" "+Field2+" "+Field3

4. The complete formula looks like this:
MyfieldName:Field1 +" "+Field2+" "+Field3


5. The " " are to insert blank spaces in between the fields. If you want it all joined to gether, justs remove the " ".

This method is similar to the CONTATENATE function in Excel.

Let me know if it works

Regards

Richard


 

Access tip:

Modal forms

If you have created a form / switchboard and dont want people to get away from using the switchboard, you can change the form properites for Modal to On.

View all Access hints and tips


Server loaded in 0.07 secs.