Hi
I have been using a bit of code in a form to calculate the exact age from a Date of Birth control...
If IsNull(txt_DOB) Or IsNull(txt_Customer_ID) Then
Exit Sub
End If
txt_Age = DateDiff("yyyy", [DOB], Date) + (DateSerial(Year(Date), Month([DOB]), Day([DOB])) > Date)
It works fine on one computer, but for some unknown reason, when I run it on a different computer, I get this error (with Date highlighted)
Compile error:
Can't find object or library
Thanks in advance
Al
I have been using a bit of code in a form to calculate the exact age from a Date of Birth control...
If IsNull(txt_DOB) Or IsNull(txt_Customer_ID) Then
Exit Sub
End If
txt_Age = DateDiff("yyyy", [DOB], Date) + (DateSerial(Year(Date), Month([DOB]), Day([DOB])) > Date)
It works fine on one computer, but for some unknown reason, when I run it on a different computer, I get this error (with Date highlighted)
Compile error:
Can't find object or library
Thanks in advance
Al