Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a column that doesn't exist in the table, to the query 1

Status
Not open for further replies.

KristieLee1

Technical User
Jul 13, 2009
76
US
Greetings all. Hope this is the right spot for my question.

I am creating a query in access off of one table. The table I am using does not contain the required code of AB01. This code should appear on all rows of returned data. I am not allowed to add this code directly to the Access table, but I must return this code when the query results are presented.

How can I add what I think would be a calculated column to display this code in a column on each row, since the field does not exist in the table itself?

Any help is appreciated. Thank you!
 
Insert or Add new column called MyCol:"AB01"

This will then add the text to all records returned by your query.
 
I can add it that way to the query? I can not modify the table structure.
 
SWEET!!! I just did it. Thank you very much for your fast response. I appreciate it!!! :)
 
Easy but only when you know how!

You can expand on this with all sorts of formula's/functions etc and is very helpful when enriching existing data tables or creating new tables

Glad to help...
 
Hi,

I did not post the question but the answer of ICCIIT is very helpful to me.

It would be beneficial to me in terms of populating my MakeTable Query with a new column with my desired values, thus expanding the capability of this query technique, thank you very much!



Accomplish work in a Flash with
MS Access Queries!
 
Glad the posting has helped - wow makes me feel good too!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top