944,205 Members | Top Members by Rank

Ad:
Oct 17th, 2007
0

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

Expand Post »
how can i export a database from access to excel but in a tabular form(calendar form)?tnx!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
macy2323 is offline Offline
4 posts
since Oct 2007
Oct 19th, 2007
0

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

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
Reputation Points: 53
Solved Threads: 13
Junior Poster
hopalongcassidy is offline Offline
148 posts
since Oct 2007
Oct 20th, 2007
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
macy2323 is offline Offline
4 posts
since Oct 2007
Oct 20th, 2007
0

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

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
Reputation Points: 53
Solved Threads: 13
Junior Poster
hopalongcassidy is offline Offline
148 posts
since Oct 2007
Oct 20th, 2007
0

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

In Excel, you cannot change the value of A, B, C, .... which appear on top of each column.
Reputation Points: 13
Solved Threads: 4
Light Poster
yello is offline Offline
30 posts
since Nov 2006
Oct 20th, 2007
0

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

Click to Expand / Collapse  Quote originally posted by yello ...
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.
Reputation Points: 53
Solved Threads: 13
Junior Poster
hopalongcassidy is offline Offline
148 posts
since Oct 2007
Oct 20th, 2007
0

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

You are right hopalongcassidy. I was just telling this to macy2323
Reputation Points: 13
Solved Threads: 4
Light Poster
yello is offline Offline
30 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: running a program on a server
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: time





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC