Invalid reference to the property UndoBatchEdit

  • Thread starter david epsom dot com dot au
  • Start date
D

david epsom dot com dot au

After building an A2K MDE, I got these problems in A2K2 and A2K3:

Invalid reference to the property UndoBatchEdit
Invalid reference to the property BeforeCommitTransaction
Invalid reference to the property RecordSourceQualifer

All three properties are ADP/ADE properties: none are used anywhere in my
MDE application.

The line where one of the errors occurred was

1200 If IsNumeric(Me.edtEntity) Then

The error was an ordinary runtime error: when the mde was loaded into retail
A2K2 or A2K3 the exception was caught by my ordinary exception handler, and
passed to my ordinary message function, all of which worked correctly.

The problem was not visible when running in A2K, or when running the MDB in
any of the three versions.

Compact/Repair/Make MDE had no effect on the problems, which were
repeatable, and always in the same places.

After playing around in the MDB for a while (retype the lines, decompile),
the problem went away again.

(david)
 
T

TC

Using methods of the dbengine object, without explicitly including the
dbengine qualifier, eg. opendatabase instead of dbengine.opendatabase,
is a rare but possible cause of MDE problems. Any chance that it was
that?

HTH,
TC (MVP Access)
http://tc2.atspace.com
 
D

david epsom dot com dot au

TC said:
Using methods of the dbengine object, without explicitly including the
dbengine qualifier, eg. opendatabase instead of dbengine.opendatabase,
is a rare but possible cause of MDE problems. Any chance that it was
that?

HTH,
TC (MVP Access)
http://tc2.atspace.com


No. I frequently use objects withot the Application. qualifier (CodeDB
instead of Application.Codedb) but I never use methods without any object at
all, seldom use dbEngine methods, and never without application.dbengine.

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top