Add Textboxes together to create long address? (1 Viewer)

spacepro

Registered User.
Local time
Today, 14:42
Joined
Jan 13, 2003
Messages
715
I am trying to add values together to create a long address.

I have 5 textboxes for
Address
Address 1
Town
Country
PostCode

I have created another textbox and bound it to longaddress in the table and put the following in the defaultvalue entry:

=[Customer_Address]+[Customer_Address1] etc etc

This does not work.
Any ideas or won't it be possible due to the 255 chars limit.

Many Thanks
Andy
 

jfgambit

Kinetic Card Dealer
Local time
Today, 14:42
Joined
Jul 18, 2002
Messages
798
Just out of curiousity, why would you want all the information in one field??

You can use the following on the On Click event of a command button:

Me.FieldName = me.Address & " " & me.Address1 & " " & me.City & " " & me.State & " " & me.Zipcode


HTH
 

chrismcbride

Registered User.
Local time
Today, 14:42
Joined
Sep 7, 2000
Messages
301
Try

=[Customer_Address] & " " & [Customer_Address1] etc etc

Chris
 

KevinM

Registered User.
Local time
Today, 14:42
Joined
Jun 15, 2000
Messages
719
You don't store this 'long address' in the table.
Instead use an expression in a query...

LongAddress:[Address1] & " " & [Address2] etc etc

or...

LongAddress:[Address1] & ", " & [Address2] etc etc
 

spacepro

Registered User.
Local time
Today, 14:42
Joined
Jan 13, 2003
Messages
715
Thanks All

Kevinm & Chrismcbride thanks for the suggestion

jfgambit:

I need to store this info in a query or table because it will be exported into excel then imported into third party software for routing purposes.

The software will only take in one column with all of the address details.

Many thanks Guys
Andy
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 09:42
Joined
Feb 19, 2002
Messages
43,769
You don't need to store the concatenated field since you can export a query rather than the table.
 

Users who are viewing this thread

Top Bottom