|
Question : Unexpected error 32811
|
|
I am running MS Access 97 on Windows XP Home. I have a few databases and have never seen this error before. In one particular database (it's quite new) if I try to run code that includes a line like
dim dbs as database
I get the message "Unexpected error 32811". This happens when I try to define variables as database objects, eg database, form, querydef, recordset. It doesn't happen when I define variables as eg string, integer, long - what I would call non-database variables.
I got this message before and got rid of it by exporting all my tables, queries and forms into a new database. I can't do that every time!
Anyone got any ideas? I've googled, but the only thing I've found is a suggestion to decompile the VBA. Since I've hardly run any code in this database I don't think that can be the solution. Anyway that solution calls for a compile - at which point I get the error message again!
Thanks, Kat
|
|
Answer : Unexpected error 32811
|
|
Try: dim dbs as DAO.database
|
|
|
|