Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Putting it Together > Databases

Reply
 
LinkBack Thread Tools
Old June 5th, 2009, 02:01 PM   #1
New Member
 

Join Date: Jul 2008
Location: Michigan
Age: 28
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 downat420 is on a distinguished road
sql to access, export to excel - change field names only on excel output

I have an access front end to an SQL database. One of its features is exporting data to excel for our excel lovers. The problem is, the SQL row headings are not named very friendly. I want to export the data and rename to headings (only change the headings in excel).

an example:

SQL column heading: dip_temp_t1000x

in excel I would like that column header to read: Dip Temp

How can I accomplish this?
downat420 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 5th, 2009, 04:04 PM   #2
New Member
 

Join Date: Jul 2008
Location: Michigan
Age: 28
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 downat420 is on a distinguished road
Re: sql to access, export to excel - change field names only on excel output

I should add:

If I right click --> export the form to excel it works as I want it to. But if I create a macro to export the form the headings are the SQL field names and that is not what I want.

I am not sure why it would export differently.
downat420 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 8th, 2009, 11:08 AM   #3
New Member
 

Join Date: Jul 2008
Location: Michigan
Age: 28
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 downat420 is on a distinguished road
Re: sql to access, export to excel - change field names only on excel output

The problem was I was outputting to a query. I know this was not web based, and this is webforumz but I thought I would try. If I output to a form in the access macro it works as it should.
downat420 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 9th, 2009, 04:31 PM   #4
Reputable Member
 

Join Date: Nov 2008
Location: Lexington, KY
Posts: 243
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 Dubbs is on a distinguished road
Re: sql to access, export to excel - change field names only on excel output

Dowant420, I don't have Access or Excel to check if this works but maybe this will help you out some.

http://www.databasedev.co.uk/export-macro.html
Dubbs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Excel to Sql Server 2005 hpjack433 .NET 2 April 3rd, 2009 02:06 PM
Excel file download requests site access AnnabelM HTML, XHTML and CSS 0 September 5th, 2008 03:01 PM
Anyone know much about Excel AdRock The Café 8 September 29th, 2007 04:58 PM
Export to Excel kebi Classic ASP 1 May 3rd, 2006 04:32 AM
Import Excel into Access ekendricks Databases 1 June 24th, 2004 05:10 AM


Search Engine Optimization by vBSEO 3.2.0 RC8