Bob said:
My DB works fine on Access 2003. When I try to run it with Access 2007
I get the above error message. I suppose that the Left function is
used in some VB code, but I've not been able to find that. How do I
find the Left function, and what needs to be done so that this DB will
work on both versions of Access? Thanks.
I got that error when Access 2003 first came out. It was too buggy at
the time so a few users took Access 2003 off their machines and had
Access 97 installed beside Office 2003. It caused a mismatch in the DAO
versions (3.5 for Access and 3.6 for Office). Removing the Reference in
Access to DAO 3.5 and selecting the reference to DAO 3.6 solved the
problem. If none of your References are missing, try unselecting the
DAO 3.6 reference to see if it allows Access 2007 to find the Left
function. Also look at:
http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/c05c6ef80e69c4f6
As far as getting the DB to run on both versions, if you can't find a
combination/order of References that work, perhaps set them in code
differently depending on which Access version is being used. You'd need
to Google for that technique since it's late where I'm at and I need to
get some sleep, but I remember that it's possible.
James A. Fortune
(e-mail address removed)