473,503 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Naming fields in a make table query

Is there a way to specify different field names in a temporary table
created using VBA? I just inherited a program and now the users want to
export results to Excel. The original programmer only provided printed
reports, so field names did not matter. The temp table is created using
a query. When I export it to Excel it uses the table field names from a
temp table (for example: SumOfLMNRKeyedNoABN). The users find this
confusing and would like to see something like TotalNoABN.

Jan 5 '07 #1
3 1625

My apologies. The VBA only calls an existing query. I have tried
entering a description and a caption and both are ignored when the
tbltemp is created.

Jan 5 '07 #2
Zammy,

There are a lot of things you can use, but the easiest would be to make a
query that changes the names in the table to the names you want and then
export the query, not the underlying table.

Hope this helps,

Gary

"Zammy" <za***@zamjohn.comwrote in message
news:11*********************@42g2000cwt.googlegrou ps.com...
Is there a way to specify different field names in a temporary table
created using VBA? I just inherited a program and now the users want to
export results to Excel. The original programmer only provided printed
reports, so field names did not matter. The temp table is created using
a query. When I export it to Excel it uses the table field names from a
temp table (for example: SumOfLMNRKeyedNoABN). The users find this
confusing and would like to see something like TotalNoABN.

Jan 5 '07 #3
"Zammy" <za***@zamjohn.comwrote in
news:11*********************@42g2000cwt.googlegrou ps.com:
Is there a way to specify different field names in a temporary
table created using VBA? I just inherited a program and now
the users want to export results to Excel. The original
programmer only provided printed reports, so field names did
not matter. The temp table is created using a query. When I
export it to Excel it uses the table field names from a temp
table (for example: SumOfLMNRKeyedNoABN). The users find this
confusing and would like to see something like TotalNoABN.
Sure there is. There is no need even to make a temporary table,
because Access exports query results to Excel just as
efficiently as making a table and exporting the table.

Either way, open the query in design view. You'll see the column
names in the top row of the spreadsheet. To assign a name to a
column, just insert the new name to the left of the existing
one, followed by a colon.

to use your example
SumOfLMNRKeyedNoABN becomes TotalNoABN:SumOfLMNRKeyedNoABN

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jan 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
10853
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
5
6088
by: ND | last post by:
I need to create a separate field from 4 fields, "street address", "city", "State" and "zip code". For example, Street address - 100 Forest Street City - Seattle State - WA Zip - 05555 ...
3
10605
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
8
3694
by: Maxi | last post by:
There is a lotto system which picks 21 numbers every day out of 80 numbers. I have a table (name:Lotto) with 22 fields (name:Date,P1,P2....P21) Here is the structure and sample data: ...
11
4972
by: MP | last post by:
Hi, Coming from a vb6 background I am accustomed to prefixing variable names to indicate their usage. Now just beginning to try to learn database stuff I've been lurking here and working on my...
9
2884
by: Jimbo | last post by:
Hello, I have a user request to build a form in an Access database where the user can check off specific fields to pull in a query. For example, let's say I have 10 fields in a table. The user...
1
2702
by: mmiikkee | last post by:
Can someone direct me to a definative source to explain or suggest naming datamart or summary tables? Given a column in a detail table like revenue, customer no, date (e.g., revnu,cust_no, and...
1
977
by: Bruce One | last post by:
Hey, Does anyone know any place where I could find information on naming guidelines for tables, fields, PKs etc ? Ah, what do people think of a table that has 200, 300 fields in it (considering...
482
27256
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if this is more of a coldfusion problem or a javscript problem. So if i asked my question in the wrong section let me know an all move it to the correct place. ...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7332
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
7462
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...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.