From the code window, choose References on the Tools menu.
Scroll down, and check the box beside:
Microsoft DAO 3.6 Library
More info on the references you need for each version of Access:
http://allenbrowne.com/ser-38.html

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
AB,
Thanks for your reply and sorry for my delay.
1 - Tools\References is empty
2 - In Start\Run:
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll
return: Sucedded
3 - In code, don't recognized DAO
(?)
an
> From the code window, choose References on the Tools menu.
>
[quoted text clipped - 18 lines]
> >
> > Dim db As DAO.Database
Douglas J Steele - 16 Jan 2006 13:03 GMT
What do you mean by "Tools\References is empty"? Are you saying that there
is nothing visible when you go to the dialog? Is this the case for all of
your databases, or just this particular one?
Hopefully you realize that you were told to go into the VB Editor to open
this dialog. Make sure that no code is running when you do it.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> AB,
>
[quoted text clipped - 29 lines]
> > >
> > > Dim db As DAO.Database
an - 16 Jan 2006 17:08 GMT
Thanks for yours ideas.
When it said empty wanted to say "extinguished".
Problem decided with the reinstallation of the Officce 2k for system
administrator...
Debtor for your aid.
an
> What do you mean by "Tools\References is empty"? Are you saying that there
> is nothing visible when you go to the dialog? Is this the case for all of
[quoted text clipped - 36 lines]
> > > >
> > > > Dim db As DAO.Database
Allen Browne - 16 Jan 2006 13:03 GMT
I don't understand:
Tools\References is empty
Do you mean to say that there are no items to choose from?
Are you logged in as a local computer administrator, or only as a limited
user?
There should be several dozen items to choose from, and you *must* have the
Access and VBA libraries selected or nothing is going to work properly.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> AB,
>
[quoted text clipped - 29 lines]
>> >
>> > Dim db As DAO.Database
an - 16 Jan 2006 17:04 GMT
Thanks for yours ideas.
When it said empty wanted to say "extinguished".
Problem decided with the reinstallation of the Officce 2k for system
administrator...
Debtor for your aid.
an
> I don't understand:
> Tools\References is empty
[quoted text clipped - 40 lines]
> >> >
> >> > Dim db As DAO.Database