I have a field on my access database called "RAge" and it's defined as a number field. I've got a Before Record Add and Before Record Edit event coded as:
str = "SELECT DateDiff('d,'" & dict("RDOB") & "', Date())/365.35 AS Age FROM Roster"
Set rsTemp = server. CreateObject ( "ADODB.Recordset" )
rsTemp. open str , dbConnection
dict("RAge") = rsTemp("Age")
I get "Record Not Updated" "Type Edit Mismatch when I try to edit the DOB and calculate the age. Why does it not like this event? I'm trying to calculate the age as of today. If I remove the "/365.25" then the calculated age is as of this year.
Thanks in advance for your help