473,383 Members | 1,880 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,383 software developers and data experts.

How do I use a query to "add" two text fields together?

Seth Schrock
2,965 Expert 2GB
I'm trying to update multiple record all at once using an update query. My problem is that I don't want to erase the text that is already in the field. I'm using a Notes field on a pop-up form and the Update query updates the notes field in the table with what I typed into the notes field on the form for all of the records matching a given criteria. For example, if the field already has "ABC" and I want to update the field of multiple records to have "DEF", then the field will be "ABCDEF" after the update is run.

I looked at the crosstab query, but that looks like it is for numbers and not text. The append query does whole records not just certain fields. What I'm asking might not be possible, but I thought I would ask before I wrote off the possibility.
Aug 11 '11 #1

✓ answered by Rabbit

An operator requires two inputs. If I wanted to append the string "DEF" to a field called FieldName, I would use
FieldName & "DEF"

4 4447
Rabbit
12,516 Expert Mod 8TB
The ampersand (&) is the append operator.
Aug 11 '11 #2
Seth Schrock
2,965 Expert 2GB
So in the Update To field of the Update query, I would put "& Notes{field on form}"?
Aug 11 '11 #3
Rabbit
12,516 Expert Mod 8TB
An operator requires two inputs. If I wanted to append the string "DEF" to a field called FieldName, I would use
FieldName & "DEF"
Aug 11 '11 #4
Seth Schrock
2,965 Expert 2GB
Works perfectly! Thanks.
Aug 11 '11 #5

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

Similar topics

0
by: Bruce | last post by:
I have three tables in SQL serve tblareas (w/autoincrement ID tblprograms (w/autoincrement ID tblphases (w/autoincrement ID I've build cascading relation from tblareas <one-many> tblprograms...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
40
by: aku | last post by:
I'm looking for the absolute fastest way to count the nr of bits that are set to "1" in a string. Presumably I then first need the fastest way to do this in a byte. I think this is it, but...
0
by: John Haigh | last post by:
Should possibly have an "add" method in a PostingObject class in the constructor of PostingObject. will call to add a Posting to the ? Does this make sense? My sense is that a PostingObject needs a...
1
by: The ants are driving me crazy | last post by:
The open file dialog control in Windows forms has an "Open" button. Is there a way to change the text of the button to something other than "Open"?
2
by: moi | last post by:
Hello, I have a formview with a dropdownlist,a textbox and a button to add a new row with this fields. Everything works good (i have my new record) when i click on the button but how to be faster...
5
by: veaux | last post by:
I'm thinking this is easy but can't get it. I have a table with following: Table1 Date 1/1/2007 Table2 Type 0107 (This is MMYY of above) So I'm having trouble using a query to turn the...
4
by: Hulm1 | last post by:
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. ...
4
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
2
by: driveman | last post by:
Hello, I have existing code working perfectly, which can : -clone existing datas (title, textarea, link-to-picture) contained in xml file, and : -delete datas. I looking for a javascript code...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.