vb 6- exporting a database as an excel file in a tabular format(calendar form)

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 4
Reputation: macy2323 is an unknown quantity at this point 
Solved Threads: 0
macy2323 macy2323 is offline Offline
Newbie Poster

vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #1
Oct 17th, 2007
how can i export a database from access to excel but in a tabular form(calendar form)?tnx!!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 147
Reputation: hopalongcassidy is an unknown quantity at this point 
Solved Threads: 13
hopalongcassidy's Avatar
hopalongcassidy hopalongcassidy is offline Offline
Junior Poster

Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #2
Oct 19th, 2007
I'm not sure what you mean by "calendar form". Since you haven't got any responses, maybe nobody else does either. I can tell you how to export a table to a spreadsheet so that the first row contains the field names of the table and each subsequent row contains the data in those fields. Is that what you want?

Hoppy
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 4
Reputation: macy2323 is an unknown quantity at this point 
Solved Threads: 0
macy2323 macy2323 is offline Offline
Newbie Poster

Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #3
Oct 20th, 2007
yes thats what i basically want. but is there any way that the title of each column in the table will be placed not on the first row but rather on the row above it(the first row where there are A,B,C...). thanks
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 147
Reputation: hopalongcassidy is an unknown quantity at this point 
Solved Threads: 13
hopalongcassidy's Avatar
hopalongcassidy hopalongcassidy is offline Offline
Junior Poster

Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #4
Oct 20th, 2007
In Excel, the rows are designated by numbers (1, 2, 3, etc.) and the columns are designated by letters("A", "B", "C", etc.).

Anyhow, here's what you need:

Call DoCmd.TransferSpreadsheet( _
acExport, _
acSpreadsheetTypeExcel97, _
"NameOfTableOrQuery", _
"MySpreadSheet.xls")

You can find documention on TransferSpreadSheet by doing a Google search on Transferspreadsheet method". Click on the first link that comes up.

Hope this helps,

Hoppy
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 30
Reputation: yello is an unknown quantity at this point 
Solved Threads: 4
yello yello is offline Offline
Light Poster

Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #5
Oct 20th, 2007
In Excel, you cannot change the value of A, B, C, .... which appear on top of each column.
www.easyprograming.com
Make Your Programing Easy
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 147
Reputation: hopalongcassidy is an unknown quantity at this point 
Solved Threads: 13
hopalongcassidy's Avatar
hopalongcassidy hopalongcassidy is offline Offline
Junior Poster

Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #6
Oct 20th, 2007
Originally Posted by yello View Post
In Excel, you cannot change the value of A, B, C, .... which appear on top of each column.
I wasn't suggesting that. I was only asking if macy2323 wanted the field names in the table to appear as the first row of the spreadsheet.

As it turns out, after having looked the documentation, the boolean parameter that determines that is ignored when exporting a table to a spreadsheet. The first row of the spreadsheet will always be the field names.

Hoppy
Last edited by hopalongcassidy; Oct 20th, 2007 at 2:22 pm.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 30
Reputation: yello is an unknown quantity at this point 
Solved Threads: 4
yello yello is offline Offline
Light Poster

Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)

 
0
  #7
Oct 20th, 2007
You are right hopalongcassidy. I was just telling this to macy2323
www.easyprograming.com
Make Your Programing Easy
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC