Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem with 'Dim' ..... As Database ???

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  Can't Make Data Connection  
Author Message
liamfitz

External


Since: Oct 24, 2006
Posts: 1



(Msg. 1) Posted: Tue Oct 24, 2006 4:19 pm
Post subject: Problem with 'Dim' ..... As Database ???
Archived from groups: microsoft>public>vb>database>dao (more info?)

It's worked perfectly in the past. When I have a 'Dim MyDb As Database'
statement in my program, it rejects it saying'User-defined type not Declared'
(I have checked that the 'VB' library where this resides is available, and it
works on new projects from scratch) PLease Help !!!! ?????

 >> Stay informed about: Problem with 'Dim' ..... As Database ??? 
Back to top
Login to vote
Ralph

External


Since: Jan 28, 2008
Posts: 31



(Msg. 2) Posted: Tue Oct 24, 2006 9:24 pm
Post subject: Re: Problem with 'Dim' ..... As Database ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"liamfitz" <liamfitz DeleteThis @discussions.microsoft.com> wrote in message
news:2630DA8E-B0D3-42A2-91EC-FBA6B396862C@microsoft.com...
> It's worked perfectly in the past. When I have a 'Dim MyDb As Database'
> statement in my program, it rejects it saying'User-defined type not
Declared'
> (I have checked that the 'VB' library where this resides is available, and
it
> works on new projects from scratch) PLease Help !!!! ?????

Check and make sure there is nothing 'missing'in the References.

Fully qualify the declarations, as in...
Dim MyDb As MyLib.Database
or Dim MyDb As DAO.Database

-ralph

 >> Stay informed about: Problem with 'Dim' ..... As Database ??? 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]