[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bump::msaccess

Title:MSACCESS
Moderator:BUMP::HONER
Created:Tue Dec 01 1992
Last Modified:Mon Jun 02 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1661
Total number of notes:6339

1631.0. "Querydefs: String Functions won't compile" by XSTACY::PATTISON (A rolling stone gets the worm) Fri Feb 07 1997 05:53

I've a very strange problem that has me stumped.

All querydefs that use string functions (Instr, Mid, Left etc) now
refuse to compile in my Access (V7) database.

Repairing the database doesn't help. Creating a blank database and
importing all the tables/queries into it doesn't help.

Looks like a VBA installation problem, I thought.

However I've another (older) database with the same queries in it
that seems to be working without any problems.

Whats going on here? Any ideas?

Dave
T.RTitleUserPersonal
Name
DateLines
1631.1Mystery solvedXSTACY::PATTISONA rolling stone gets the wormFri Feb 07 1997 06:1815
Ok, I've found the answer

I'll explain in case anyone else has this problem.

Unknown to me there was some Access Basic in the database, in a module
with compilation errors.

For some odd reason, if you have any VBA code with errors, no queries
that call VBA functions will execute (in the Access environment).

However if you are using the Querydefs from Visual Basic, as I normally do
they all work. 

Dave 
1631.2In case new conversions are in order...NSIC00::KLERKThunderbirds are GoFri Feb 07 1997 11:4415
 The Access 95 conversion process strongly suggests that one:

    1. Open all forms and modules
    2. Compile all
    3. Compact database
    4. Make a copy (so nothing is lost if something goes wrong now...)
    5. Convert copy Database
    6. Compact new database again

 This should reasonably give you a proper working database. However, if
 the Access 2 database has used names that for Access 95 are reserved words,
 then you would still find problems during conversion.

 Theo