Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access+courses+in+london - concatenation

Forum home » Delegate support and help forum » Microsoft Access Training and help » access+courses+in+london - Concatenation

access+courses+in+london - Concatenation

ResolvedVersion Standard

Bob has attended:
Access Intermediate course

Concatenation

Got a DB with 3 columns

Col 1 = ID (unique value)
Col 2 = Agent Name (Unique value)
Col 3 = Postcode (multiple values)

ie: 1 Postcode is covered by many agents...

How can I concatenate Col 1 & 2 into single Postcodes

ie:

001, 002, 003 Fred Smith, Jim Hall, Pat Jones TW8 8JA

Many thanks

RE: Concatenation

Hi Bob

Sorry for the delay.

Do you need to have the IDs, Agent names and postcode appear as a new value?

If not you could do a query that just concactenates the ID and Agent name for each record and then create a report that shows all agents grouped by Postcode

To Concactenate in a Query:

In a new field in the Query window

Open the Build window - Right click Select build

Enter the following code:


FullAgent: [ID field] + "," + [Agent name field]

Hope this helps.

Regards

Carlos

Access tip:

How To Find All Overdue Accounts?

To find overdue accounts create a filter that compares today's date with the Invoice Date in the table. To do this:

1. Open the Query in Design View
2. Select the field for the filter and in the criteria row enter:

<Date()

This filter returns records where the Invoice Date is before today's date.

This filter can be manipulated if, for instance, Invoices are due 15 days after the Invoice Date. For this the filter would be:

<Date()-15

This filter returns records where the Invoice Date is 15 days before today's date.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.