Hi,
I have an Access '97 databease that I am trying to convert to 2000. When I do the conversion, it reports a compile error in a module that is used to calculate the difference between two dates. The module is as follows:
Public Function ReturnTheDate() As Date
Dim dteStart As Date
dteStart = Nz(rc.Fields("leavedate"
, Now())
End Function
When I try to compile, it highlights the 'rc.' in the above statement and says that the variable is not defined.
I am not too good with Vb, but I assume that rc. is 'record'. Does anyone have any idea of why this would run in '97 and not 2000, and what I might do to make it compile successfully in 2000?
Thanks
I have an Access '97 databease that I am trying to convert to 2000. When I do the conversion, it reports a compile error in a module that is used to calculate the difference between two dates. The module is as follows:
Public Function ReturnTheDate() As Date
Dim dteStart As Date
dteStart = Nz(rc.Fields("leavedate"
End Function
When I try to compile, it highlights the 'rc.' in the above statement and says that the variable is not defined.
I am not too good with Vb, but I assume that rc. is 'record'. Does anyone have any idea of why this would run in '97 and not 2000, and what I might do to make it compile successfully in 2000?
Thanks