473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Add two Address fields together and put into one.

22
I need to take two fields (Addess_1 and Address_2) and put them into one (address) in an existing database. I imagine I should use an Update Query but am making a bit of a dog's breakfast of it.

Also: Ironically, I need to take a Single field (Contact Name) and split it into two (First Name and Last Name). Again I suspect an update query.

Can someone please advise? Thanks
Mar 30 '08 #1
4 2701
missinglinq
3,532 Expert 2GB
put them into one (address) in an existing database
Your post could be a little clearer. If by this you mean within the same database they're already in, what you need to do (if you're not already doing it) is base your forms/reports off of queries based on your table(s) which you should do routinely anyway. Then, in Design View for your query, create a calculated field like this:

CompleteAddress: [Addess_1] & " " & [Address_2]

Now, in your forms/reports, simply use the created field CompleteAddress, like you would any other field. That's all you'll need to do, no Update Query needed.

Parsing the whole name into last name/ first name will require a little more effort, depending on the current format of this field. We need to see how it's currently formatted, i.e.

John Smith
Smith, John
Smith John

and whether the names have Mr/Mrs/Ms before as well as Jr/Sr/III and so forth afterwards. Obviously, the more complications beyond the simple first name and last name, the more difficult/less successful efforts will be to parse the names without human intervention.

Linq ;0)>
Mar 30 '08 #2
Hulm1
22
Thank you for the reply.

Regarding addresses first: This is all one database that I have been building. I have been learning as I go.

Consequently I find that I have not done things according to best practice. I accept your approach re: calculated fields, but I think that this is not really what I want. The reason is that I am quite keen on the idea of lnterfacing my database with MS Outlook and that uses one address field. As such, I really would prefer some kind of update query to convert my current database to this format and go forward from there.

Regarding the names: The same applies. In this case, however, I only want to make the change now, before I regret it later! I currently do NOT include title of any kind, nor punctuation. Just first and last name. Currently it is simply: John Smith
Mar 30 '08 #3
Hulm1
22
I have solved both if these issues now

Thank you
Mar 31 '08 #4
missinglinq
3,532 Expert 2GB
Glad you've got it all running!

Linq ;0)>
Mar 31 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Steve | last post by:
Hi all Ok then I have searched through the back postings for a while now on google and read some interesting stuff on how to model a typical client / order db however.... My problem is that I...
1
by: Chris Lutka | last post by:
I've been racking my brains all day over this. And I'm not the best at SQL either. I need a query that will produce the following results:...
11
by: farqs | last post by:
I've got a form with feilds: Address, Suburb, State, Pcode (for the Location Addres) and then: PAddress, PSuburb, PState, PPcode (for the Postal Address). When the postal address is the same as...
1
by: robertmeyer1 | last post by:
I have a query that I am trying to run a sum of (sigma) on a group of about 6 fields. I am trying to sum different record sources together. Right now I have 6 fields of numeric data. The 1st field...
57
by: Robert Seacord | last post by:
i am trying to print the address of a function without getting a compiler warning (i am compiling with gcc with alot of flags). if i try this: printf("%p", f); i get: warning: format %p...
14
by: Thurston Manson | last post by:
Suppose I'm using an implementation where an int is 16 bits. In the program below, what function is called in the first case, and what is called in the second case? Also, if there is a difference...
2
by: laph | last post by:
I have two databases (DB 1 and DB 2) that linked together by a particular table. So database 1 could see a table in DB 2. Table1 belongs to DB1. Table2 belongs to DB2 but link to DB1. - On this DB...
7
by: Chris Morley | last post by:
Hi, i have found out as i have developed the database i've ended up with a number of tables that have the same attributes. For instance, my suppliers and customers have the same fields for the...
10
by: H | last post by:
Hi, I have the following address fields in a table: flat_number house_name_or_number street village postal_town county postcode
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.