Move data to the most left column (1 Viewer)

curtyrut

Registered User.
Local time
Yesterday, 19:17
Joined
Dec 23, 2015
Messages
23
What if the columns are not consecutive? For example, address 1, update address 1, address 2, update address 2, ......etc?

Thanks.
 

MarkK

bit cruncher
Local time
Yesterday, 16:17
Joined
Mar 17, 2004
Messages
8,179
Do this in a query (at retrieval time, easy), not in code (moving data around inside your db, hard) . . .
Code:
SELECT Field1 & Field2 & Field3 & Field4 As Address 
FROM tTable
Done. Easy.

Different fields on different lines? Write a new query! Easy.
Code:
SELECT Field12 + chr(13) + chr(10) & Field13 + chr(13) + chr(10) & Field14 As CherryPickedMultiLineAddress
FROM tTable

Delimit the fields differently? New query . . .
Code:
SELECT Field1 + "|" & Field2 + "|" & Field3 As DelimitedAddress
FROM tTable

Storing data is easy. Retrieving data is easy. Moving data around inside your database is hard. IMO.
 

Users who are viewing this thread

Top Bottom