- Total Members: 220,328
- Threads: 525,402
- Posts: 977,028
Great community. Great ideas.
Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.
-
November 27th, 2012, 04:25 PM
#1
Change field names in query export to Excel
I am trying to output an Access query into an Excel format for a user feedback survey where users rate certain aspects of their experience with numerical values. I would like to export the entire table (within date parameters entered by the user). The problem I am having is that I need the field names on the Excel report to display as the full questions. Currently, the field names are named A, B, C, etc because the full questions exceed alias character limitations. So for example, I would rather my data look like this..
User R| user |
How do you rate the overall experience... |
Rate the ease of use of the blah blah... |
Rate the yada, yada, yada... |
| John |
1 |
3 |
2 |
| Sue |
2 |
4 |
3 |
...than this...
| User |
A |
B |
C |
| John |
1 |
3 |
2 |
| Sue |
2 |
4 |
3 |
The output must be in Excel because the reports will be distributed to an audience that may want to do their own analysis with the data.
Help please! And thanks in advance.
-
November 27th, 2012, 04:27 PM
#2
Sorry for the random floating "User R". Ignore that.
-
November 27th, 2012, 04:56 PM
#3
I think then your only option is to modify the Excel file after the data is exported.
Can be manual or coded modification.
-
November 27th, 2012, 05:01 PM
#4
I was afraid of that. The current process is pasting in the correct column headings once the data is exported to Excel, but my manager would like to eliminate that step.
-
November 27th, 2012, 05:27 PM
#5
are your questions saved in another table? You could use a union query to add a row containing the questions. you'd still get the letter column headings, but then at least maybe you'd be able to get the actual questions too.
-
November 27th, 2012, 05:59 PM
#6
That might just work! Thanks for the suggestion! I'll try it out and see how it looks.
-
November 28th, 2012, 03:30 PM
#7
Wow, brilliant, merati!
trishk, are you using TransferSpreadsheet method for the export? I just tested with UNION query and it did work.
-
December 1st, 2012, 07:49 AM
#8
With the report in Design View, Right click on the fields and select properties. Select the "Other" Tab and in the Field Name type in the heading you wish to appear on yoru excel report.
That is what I do to one of my reports and it seems to work Ok
Similar Threads
-
By Griggsy in forum Microsoft Access Help
Replies: 2
Last Post: October 6th, 2011, 01:26 AM
-
By coolhandphil in forum Microsoft Access Help
Replies: 2
Last Post: October 13th, 2009, 02:37 AM
-
By wop_nuno in forum Microsoft Access Help
Replies: 13
Last Post: March 12th, 2009, 03:21 AM
-
By bdhtexas in forum Microsoft Access Help
Replies: 3
Last Post: June 10th, 2005, 10:47 AM
-
By wmgrfri in forum Microsoft Access Help
Replies: 18
Last Post: April 19th, 2005, 03:43 PM