I'm trying to add a field to a bunch of tables that are used to pull the longest record for each field. The program has been working fine for over a year. Now, when I add the field, I get the 3127 error. However, when I check the table for the missing field, the field is there.
In fact, if I go into vba, return the variable containing the full SQL string, copy that into a query Window back in access, and run it with no modifications, IT RUNS! What the heck? Obviously, the two tables are the same, else a query window would error out too.
Here's the SQL statement, thought it works.
In fact, if I go into vba, return the variable containing the full SQL string, copy that into a query Window back in access, and run it with no modifications, IT RUNS! What the heck? Obviously, the two tables are the same, else a query window would error out too.
Here's the SQL statement, thought it works.
Code:
INSERT INTO MAX_FULLNAME_DUMP SELECT * FROM table WHERE len(Trim(Fullname)) in (Select MaxLen from Max_Fullname)
Comment