Hi all,
I have the following code contained in a command button's onclick event
***********************************
Dim FinishTime As Date
FinishTime = Now
ENDTIME = FinishTime
INTTIME = DateDiff("n", STTIME, ENDTIME)
DoCmd.OpenQuery ("Complete"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetType97, "tblcomplete", NAME, True
************************************
The Complete query selects a bunch of data, which is then exported as an excel file (including the variable INTTIME). However, the value of INTTIME is never exported. Is this because the value of INTTIME isn't updated before the query is run?
Can anyone suggust a way to fix this problem?
Thanks in andvance.
Dan
I have the following code contained in a command button's onclick event
***********************************
Dim FinishTime As Date
FinishTime = Now
ENDTIME = FinishTime
INTTIME = DateDiff("n", STTIME, ENDTIME)
DoCmd.OpenQuery ("Complete"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetType97, "tblcomplete", NAME, True
************************************
The Complete query selects a bunch of data, which is then exported as an excel file (including the variable INTTIME). However, the value of INTTIME is never exported. Is this because the value of INTTIME isn't updated before the query is run?
Can anyone suggust a way to fix this problem?
Thanks in andvance.
Dan