DAO Error

  • Follow


Hi,
When I open up my access database I get this error.

Error1:
The database was created in an earlier version of 
Microsoft Access. To convert the database to the current 
version of Microsoft Access, close the database, point to 
DB Utilities on the Tools menu and then click convert 
database.

After I do this, I then receive this error.

" Microsoft Access
There were compilation errors during conversion or 
enabling of this database. This might be due to old DAO 
syntax that is no longer supported. For an example on how 
to fixup the code, click HELP."

Your help is appreciated.

Thanks,
Rachel
0
Reply Rachel 2/7/2005 4:35:45 PM

Rachel wrote:
> After I do this, I then receive this error.
>
> " Microsoft Access
> There were compilation errors during conversion or
> enabling of this database. This might be due to old DAO
> syntax that is no longer supported. For an example on how
> to fixup the code, click HELP."

Go into any module (or just hit Ctrl-G).  Go to Tools, References and look
at the references that are checked.

If any are marked missing, uncheck them.  Ensure that DAO 3.6 library is
checked.

Then go to Debug, and click on Compile, then click on the save button.
-- 
Joan Wild
Microsoft Access MVP


0
Reply Joan 2/7/2005 7:05:57 PM


Hi,
I followed your instructions but I receive the same error 
after making the changes.
There were no references missing but compiling the program 
raised an error. strdate.date
I changed the code to datetime and then it compiled 
without any problems.
But then I was unable to save. Access told me that I would 
basically have to convert the database first and then I 
could make changes to it.
So I converted, changed the code and recompiled and 
received no errors.
After this, I tried running the reports and they all show 
up as errors.

Any other ideas?

Thanks,
Rachel
>-----Original Message-----
>Rachel wrote:
>> After I do this, I then receive this error.
>>
>> " Microsoft Access
>> There were compilation errors during conversion or
>> enabling of this database. This might be due to old DAO
>> syntax that is no longer supported. For an example on 
how
>> to fixup the code, click HELP."
>
>Go into any module (or just hit Ctrl-G).  Go to Tools, 
References and look
>at the references that are checked.
>
>If any are marked missing, uncheck them.  Ensure that DAO 
3.6 library is
>checked.
>
>Then go to Debug, and click on Compile, then click on the 
save button.
>-- 
>Joan Wild
>Microsoft Access MVP
>
>
>.
>
0
Reply Rachel 2/7/2005 8:37:31 PM

What version of Access are you converting from and to?  I expected you to
convert and then follow the steps.

What references do you have checked?

Rachel wrote:
> Hi,
> I followed your instructions but I receive the same error
> after making the changes.
> There were no references missing but compiling the program
> raised an error. strdate.date
> I changed the code to datetime and then it compiled
> without any problems.
> But then I was unable to save. Access told me that I would
> basically have to convert the database first and then I
> could make changes to it.
> So I converted, changed the code and recompiled and
> received no errors.
> After this, I tried running the reports and they all show
> up as errors.
>
> Any other ideas?
>
> Thanks,
> Rachel
>> -----Original Message-----
>> Rachel wrote:
>>> After I do this, I then receive this error.
>>>
>>> " Microsoft Access
>>> There were compilation errors during conversion or
>>> enabling of this database. This might be due to old DAO
>>> syntax that is no longer supported. For an example on how
>>> to fixup the code, click HELP."
>>
>> Go into any module (or just hit Ctrl-G).  Go to Tools, References
>> and look at the references that are checked.
>>
>> If any are marked missing, uncheck them.  Ensure that DAO 3.6
>> library is checked.
>>
>> Then go to Debug, and click on Compile, then click on the save
>> button. --
>> Joan Wild
>> Microsoft Access MVP
>>
>>
>> .

-- 
Joan Wild
Microsoft Access MVP


0
Reply Joan 2/7/2005 8:48:44 PM

Hi,
I am converting to Access 2000.
Here is the list of references selected.

Visual Basic For Applications
Microsoft Access 9.0 Object Library
Ole Automation
utility
Microsoft Visual Basic or Applications Extensibility 5.3
Microsoft DAO 3.6 Object Library

Rachel

>-----Original Message-----
>What version of Access are you converting from and to?  I 
expected you to
>convert and then follow the steps.
>
>What references do you have checked?
>
>Rachel wrote:
>> Hi,
>> I followed your instructions but I receive the same 
error
>> after making the changes.
>> There were no references missing but compiling the 
program
>> raised an error. strdate.date
>> I changed the code to datetime and then it compiled
>> without any problems.
>> But then I was unable to save. Access told me that I 
would
>> basically have to convert the database first and then I
>> could make changes to it.
>> So I converted, changed the code and recompiled and
>> received no errors.
>> After this, I tried running the reports and they all 
show
>> up as errors.
>>
>> Any other ideas?
>>
>> Thanks,
>> Rachel
>>> -----Original Message-----
>>> Rachel wrote:
>>>> After I do this, I then receive this error.
>>>>
>>>> " Microsoft Access
>>>> There were compilation errors during conversion or
>>>> enabling of this database. This might be due to old 
DAO
>>>> syntax that is no longer supported. For an example on 
how
>>>> to fixup the code, click HELP."
>>>
>>> Go into any module (or just hit Ctrl-G).  Go to Tools, 
References
>>> and look at the references that are checked.
>>>
>>> If any are marked missing, uncheck them.  Ensure that 
DAO 3.6
>>> library is checked.
>>>
>>> Then go to Debug, and click on Compile, then click on 
the save
>>> button. --
>>> Joan Wild
>>> Microsoft Access MVP
>>>
>>>
>>> .
>
>-- 
>Joan Wild
>Microsoft Access MVP
>
>
>.
>
0
Reply Rachel 2/8/2005 1:11:06 PM

You should be able to uncheck the utility one.

Then go to Debug, Compile.  If you get any errors, you'll need to fix them.
If it compiles, then hit the save button.  Close the window and then go to
Tools, Database Utilities, Compact.

-- 
Joan Wild
Microsoft Access MVP


0
Reply Joan 2/8/2005 3:29:39 PM

"Rachel" <Rachel@hotmail.com> wrote in message 
news:250b01c50d33$128dc020$a401280a@phx.gbl...
> Hi,
> When I open up my access database I get this error.
>
> Error1:
> The database was created in an earlier version of
> Microsoft Access. To convert the database to the current
> version of Microsoft Access, close the database, point to
> DB Utilities on the Tools menu and then click convert
> database.
>
> After I do this, I then receive this error.
>
> " Microsoft Access
> There were compilation errors during conversion or
> enabling of this database. This might be due to old DAO
> syntax that is no longer supported. For an example on how
> to fixup the code, click HELP."
>
> Your help is appreciated.
>
> Thanks,
> Rachel 


0
Reply bob 4/26/2005 11:14:29 PM

6 Replies
164 Views

(page loaded in 0.086 seconds)

Similiar Articles:
















7/20/2012 7:21:40 AM


Reply: