J
|
Jane 2/15/2007 |
Ivano, |
I
|
igiacchi author 2/15/2007 |
Ivano, you can do it using Before record updated event on the Events tab. Event code will be dependent on type of your database.
|
C
|
clig 2/15/2007 |
Здраствуйте Jane, не могли бы Вы помочь моему итальянскому другу - ответ, который Вы прислали недостаточно подробный. Помогите пажалуйста тупым итальянцам.Если можете - на английском пожалуйста. Yuri Trovati Ivano Giacchi
|
I
|
igiacchi author 2/16/2007 |
This adds two datestamps together in number of hours including minutes - for example: StartTime= 02/14/2007 8:41:25 PM, EndTime= 02/14/2007 11:40:18 PM, TotalHours = 2.98 dict("TotalHours") = CAST(DATEDIFF(n, dict("StartTime"), dict("EndTime")) / 60 AS decimal(10, 4)) + CAST(CAST(DATEDIFF(n, dict("StartTime"), dict("EndTime")) - DATEDIFF(n, dict("StartTime"), dict("EndTime")) / 60 * 60 AS decimal(10, 4)) / 60 AS decimal(10, 4))
|
C
|
clig 2/17/2007 |
Hi Sirs, many thanks for your patient and your courtesy, I have tried to use your code but without any solution. I have receive this error from application: Tipo di errore: Errore di compilazione di Microsoft VBScript (0x800A03EE) Previsto ')' /Personale/include/Rapporti_events.asp, line 12, column 84 dict("R_TOTALEORA") = CAST(DATEDIFF(n, dict("R_ORASTART1"), dict("R_ORAEND1")) / 60 AS decimal(10, 4)) + CAST(CAST(DATEDIFF(n, dict("R_ORASTART1"), dict("R_ORAEND1")) - DATEDIFF(n, dict("R_ORASTART1"), dict("R_ORAEND1")) / 60 * 60 AS decimal(10, 4)) / 60 AS decimal(10, 4)) -----------------------------------------------------------------------------------^ I have controlled the parentheses and they are exact I have tried also to use only a small part of the code like ( response.write DATEDIFF ( n, dict("R_ORASTART1"), dict("R_ORAEND1")) but he does not work. Sigh ! I think that a good trip to Lourdes could be a good solution. It is better that I will continue to work with firewall and server ... Does not exist the solution for my problem? Many thanks again Ivano
|
C
|
clig 2/17/2007 |
Hi Sirs, many thanks for your patient and your courtesy, I have tried to use your code but without any solution. I have receive this error from application: Tipo di errore: Errore di compilazione di Microsoft VBScript (0x800A03EE) Previsto ')' /Personale/include/Rapporti_events.asp, line 12, column 84 dict("R_TOTALEORA") = CAST(DATEDIFF(n, dict("R_ORASTART1"), dict("R_ORAEND1")) / 60 AS decimal(10, 4)) + CAST(CAST(DATEDIFF(n, dict("R_ORASTART1"), dict("R_ORAEND1")) - DATEDIFF(n, dict("R_ORASTART1"), dict("R_ORAEND1")) / 60 * 60 AS decimal(10, 4)) / 60 AS decimal(10, 4)) -----------------------------------------------------------------------------------^ I have controlled the parentheses and they are exact I have tried also to use only a small part of the code like ( response.write DATEDIFF ( n, dict("R_ORASTART1"), dict("R_ORAEND1")) but he does not work. Sigh ! I think that a good trip to Lourdes could be a good solution. It is better that I will continue to work with firewall and server ... Does not exist the solution for my problem? Many thanks again Ivano
|
I
|
igiacchi author 2/19/2007 |
Hi Clig, |
I
|
igiacchi author 2/19/2007 |
Hi Clig, |