|
-
Jun 17th, 2008, 05:28 AM
#1
Thread Starter
New Member
Having some problems
I am trying to make a program in VB which can display records with multiple fields. It needs to be able to search for the records. And it needs to be able to display individual records not just the whole table.
+ needs to be done in a week.
I am using access 2002 to make the database. and using Microsoft Visual Basic 2005 express edition. I am trying to learn from a pre release of "Programming with VISUAL BASIC, Using VB.NET
The book has many errors.
When I try and declare my DB into the program "Dim dbMyDB As Database"
I get the error "Error 1 Type 'Database' is not defined. "
Accoring to this
Go to Tools | References | ... and make sure Microsoft DAO is checked.
To make sure this is the cause, afterward type ... "Dim myDB as DAO.Database".
The "intelliSense" should offer a drop-down box after you type "as" offering
you a list of libraries, then again after typing/picking DAO and typing
the ".", it should offer you a choice of objects, from which you type/pick
Database.
I dont actually have preferences under Tools....any help with that one?
Also another error "
It says drag an OleDbDataAdapter onto the form, (I cannot find this on the list)"
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
|