Re: defined type
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Thu, 18 May 2006 17:16:40 -0400
You need to add a reference to ADOX.
With any module open (and no code running), select Tools | References from
the menu bar. Scroll through the list until you find the entry for Microsoft
ADO Ext. 2.x for DDL and Security (x will vary), select it, and close the
dialog.
Alternative, you could try using Late Binding. That would mean changing your
declaration to
Dim cat As Object
and adding a line
Set cat = CreateObject("ADOX.Catalog")
Of course, if you've got other ADOX objects declared or if you're using
intrinsic ADOX constants, it's probably easier to add the reference.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Florin" <florin_serban@xxxxxxxxxxx> wrote in message
news:%23cT7gUneGHA.2188@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
In my first function in Access97 , I get the errors:
"User - defined type not defined"
for cod line: "Dim cat As New ADOX.Catalog"
(function loads the LinkedTables array)
What can I do?
Thanks
.
- Follow-Ups:
- Re: defined type
- From: Florin
- Re: defined type
- References:
- defined type
- From: Florin
- defined type
- Prev by Date: defined type
- Next by Date: Re: Report saved as DAP
- Previous by thread: defined type
- Next by thread: Re: defined type
- Index(es):
Relevant Pages
|