Results 1 to 2 of 2

Thread: Having some problems

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    15

    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)"

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Having some problems

    If that book is for VB 2005 and it's recommending you use DAO then it's a pile of cr*p and you need to get rid of it. If it's not for VB 2005 then it's for VB6, which is a different language so you need to get rid of that book. Get a decent book for the right language or else just work through some online tutorials for VB 2005.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width