J
jimmy84c
Hi all,
I am getting the following runtime error:
"Cannot perform '=' operation on System.DateTime and System.Int32."
But I can't understand where the Int32 is coming from!!
The code is:
Drv.BeginEdit()
Drv("Editor") = Me.Recorder.Text
Drv("CompletedDateTime") = Me.DateTime.Value
Drv.EndEdit()
So, I am setting the value of the CompletedDateTime column to the value
of a DateTime control on the form.
Strange, because in the code (on a different table, but the same
DateTime control it works perfectly: Drv("DateTime") = DateTime.Value
So - why is there a problem, and where is the System.Int32 it is
talking about?!?
When I debug during runtime, the value returned from Me.DateTime.Value
is #12/01/2006# and so on.
Even when I rewrite the code to:
Drv("CompletedDateTime") = #12/01/2006#
It still causes the same error!
I'm tearing my hair out here.. any help much appreciated.
Thanks!
I am getting the following runtime error:
"Cannot perform '=' operation on System.DateTime and System.Int32."
But I can't understand where the Int32 is coming from!!
The code is:
Drv.BeginEdit()
Drv("Editor") = Me.Recorder.Text
Drv("CompletedDateTime") = Me.DateTime.Value
Drv.EndEdit()
So, I am setting the value of the CompletedDateTime column to the value
of a DateTime control on the form.
Strange, because in the code (on a different table, but the same
DateTime control it works perfectly: Drv("DateTime") = DateTime.Value
So - why is there a problem, and where is the System.Int32 it is
talking about?!?
When I debug during runtime, the value returned from Me.DateTime.Value
is #12/01/2006# and so on.
Even when I rewrite the code to:
Drv("CompletedDateTime") = #12/01/2006#
It still causes the same error!
I'm tearing my hair out here.. any help much appreciated.
Thanks!