Connecting Tech Pros Worldwide Forums | Help | Site Map

Connecting to VB 6.0

Member
 
Join Date: May 2007
Posts: 63
#1: Aug 14 '07
Hi I am trying to connect to VB 6.0 and access

I am new to VB so am having difficulty.

when I say
Global x as Database
in my module

it says "User defined type not allowed"

can anyone plz tell me wht I am doing wrong??

Dököll's Avatar
Moderator
 
Join Date: Nov 2006
Location: Upstate NY - US
Posts: 2,268
#2: Aug 24 '07

re: Connecting to VB 6.0


Quote:

Originally Posted by amolbehl

Hi I am trying to connect to VB 6.0 and access

I am new to VB so am having difficulty.

when I say
Global x as Database
in my module

it says "User defined type not allowed"

can anyone plz tell me wht I am doing wrong??

Are you using Access 97? It's been known to have this issue...There's a solution here but you'll need to do some reading. I'll attempt to find in and post link. I would fetch using "connect vb to ms access" something in that kind of a line...should pull up an array of examples nontheless!

In a bit!
missinglinq's Avatar
Moderator
 
Join Date: Nov 2006
Location: Richmond, Virginia USA
Posts: 3,000
#3: Aug 24 '07

re: Connecting to VB 6.0


Quote:

Originally Posted by amolbehl

Hi I am trying to connect to VB 6.0 and access
I am new to VB so am having difficulty.
when I say
Global x as Database
in my module
it says "User defined type not allowed"

Am I write in reading this as saying that you're placing this code in a module in VB 6 and not in VBA?

Linq
Reply