I have been using the following code in a query to calculate age. It has worked fine in my Office 2k system with service pack 3. I have installed the database on other office 2k machines and had to upgrade to service pack 3 or else I received Undefined function "format" in expression errors. I was getting a "missing" on MS windows common controls 26.0 (SP4). I found if I copied mscomct2.ocx from my machine to theirs it worked.
I have now installed the program on a new Office 2003 Laptop with latest SP upgrade and mscomct2.ocx installed (by me). But the "undefined" error still comes up. I have checked all the Object Libraries and they are there except on the new computer they are all (11.0) where on mine they are (9.0).
Has anyone any suggestions please?
I have now installed the program on a new Office 2003 Laptop with latest SP upgrade and mscomct2.ocx installed (by me). But the "undefined" error still comes up. I have checked all the Object Libraries and they are there except on the new computer they are all (11.0) where on mine they are (9.0).
Code:
age: DateDiff("yyyy",[dateofbirth],Now())+Int(Format(Now(),"mmdd")<Format([dateofbirth],"mmdd"))
Has anyone any suggestions please?