The table records events that have occured, it is very large and people
export it to do graphs for analysis and reports. Is there a way to get the
from to export a large amout of records into a excel sheet?
> "Many people use the table" ?? As far as I am aware tables should never be
> touched.
[quoted text clipped - 7 lines]
> > outputed to excel alot. So is there anyways at all to get the calculation to
> > store in the underlying table?
Klatuu - 24 Jul 2007 16:06 GMT
Yes, you create a query that has the calculation in it, then you use it in
the Table Name argument of the TransferSpreadsheet method to export it to an
Excel file.
The only justification for ever storing a calculated value in a table is
when the data necessary to produce the calculation will never be available
again. In this case, you have the two times and can easily reproduce the
calculation.

Signature
Dave Hargis, Microsoft Access MVP
> The table records events that have occured, it is very large and people
> export it to do graphs for analysis and reports. Is there a way to get the
[quoted text clipped - 11 lines]
> > > outputed to excel alot. So is there anyways at all to get the calculation to
> > > store in the underlying table?
John W. Vinson - 24 Jul 2007 17:16 GMT
>The table records events that have occured, it is very large and people
>export it to do graphs for analysis and reports. Is there a way to get the
>from to export a large amout of records into a excel sheet?
Use a Query instead of the Table. It exports to Excel in exactly the same way.
John W. Vinson [MVP]
scubadiver - 25 Jul 2007 07:38 GMT
DoCmd.TransferSpreadsheet acExport, _
acSpreadsheetTypeExcel9, "QUERYNAME", _
"EXPORT LOCATION", , "NAME OF SHEET IN WORKBOOK"
Change those in capitals and put the code in the "on click" event in the
button. You can have as many as you like in the same event.

Signature
www.ae911truth.org
> The table records events that have occured, it is very large and people
> export it to do graphs for analysis and reports. Is there a way to get the
[quoted text clipped - 11 lines]
> > > outputed to excel alot. So is there anyways at all to get the calculation to
> > > store in the underlying table?