|
-
Feb 11th, 2001, 02:58 PM
#1
Thread Starter
New Member
Alright...
I found a database demo at vbsquare.com.
In the General Declarations it states
Dim DB As Database
Dime RS As RecordSet
Well... When I transfered that code to my existing project that I wanted to add the database too, it gave me an error. Appearantly it wont let me use 'Database' as an option. 
But it will let me use 'Database' as an option in the demo I downloaded. What do I have to do???
-
Feb 11th, 2001, 03:07 PM
#2
Fanatic Member
I'm not completly sure on this one but you might have to use a "type" statement
-
Feb 11th, 2001, 03:17 PM
#3
Thread Starter
New Member
Aight...
Well...
Yeah, I have to use a 'type' statement...
What kinda 'type' statement should I use???
Dim DB As Database
That doesn't seem to work with my program, but it does with the program I downloaded from vbsquare.com
-
Feb 11th, 2001, 03:25 PM
#4
Fanatic Member
If the other example works...
It should be contained in the other program if that prograam works correctly. other than that i'm not sure.
-
Feb 11th, 2001, 03:59 PM
#5
Member
To use the DAO database objects your project must have a reference to the file containing these DAO components. Use the project menu to open the reference (Menu Project > sub menu References) and look for the DAO components called:
Microsoft DAO 3.6 object library
(or version 2.5 or 3.51 etc.)
Select the the component and click Ok. Now your program can use the DAO objects like Database and Recordset.
-
Feb 11th, 2001, 10:43 PM
#6
Thread Starter
New Member
I cant find that...
I cant find the Microsoft DAO object library...
I have the Microsoft ADO Data Control 6.0 in my components list.
What can I do???
-
Feb 11th, 2001, 10:50 PM
#7
Lively Member
make sure you selected the References and not the Components menu option.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|