Y
Yves via AccessMonster.com
Hi,
I am having problem when I transfer data from a Report to Excel. Here is the
code that I am using:
strWhere = "[Date] Between " & _
Format(Me.txtStart, "\#yyyy\/m\/d\#") & " And " & _
Format(Me.txtend, "\#yyyy\/m\/d\#")
stDocName = "S1_Temps_Mois_P1_P2"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
DoCmd.OutputTo acReport, stDocName, acFormatXLS, , True
The fields in the Report that are directly related to a Table does get
transfered to Excel but the fields that I am calculating with VB code does
not show up in Excel.
Any suggestion??
I am having problem when I transfer data from a Report to Excel. Here is the
code that I am using:
strWhere = "[Date] Between " & _
Format(Me.txtStart, "\#yyyy\/m\/d\#") & " And " & _
Format(Me.txtend, "\#yyyy\/m\/d\#")
stDocName = "S1_Temps_Mois_P1_P2"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
DoCmd.OutputTo acReport, stDocName, acFormatXLS, , True
The fields in the Report that are directly related to a Table does get
transfered to Excel but the fields that I am calculating with VB code does
not show up in Excel.
Any suggestion??