I have a module I got from an EE contributor that I've been using for a while to calculated the size of each object (tables, forms etc..) in an Access DB.
I've used it many times on my Win XP Access 2003 MDB's and I'm trying to run it for the first time on my Access 2010, Win 7 Pro DB.
I'm getting a syntax error on the 'Insert Into' command.
This is the statement that throws the error:
DoCmd.RunSQL "Insert Into ObjectSizes (Name, Type, Size) Values ('" & objName & "','" & strObject & "'," & FileLen(strDbName) - blankSize & ")"
I did a debug.print to see what the string it was building looked like and this is it:
Insert Into ObjectSizes (Name, Type, Size) Values ('frmConversion','Forms',135168)
I checked how it runs on my XP Access 2003 MDB's and it still works fine and creates exactly the same string for the 'Insert Into'