Results 1 to 2 of 2

Thread: New DataBase

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Preddvor, SI, Slovenia
    Posts
    18

    Post

    Hi
    I created a database using MSAccess 97 and now I want to open it in VB5 using DBGrid control. How do I do this? Thanks.

    Jure

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Drop a Data control on the form. Set the DatabaseName property to point to the database of your choice. Change the Recordsource property to the desired table (or you can use SQL statement there).

    Then drop a DBGrid on the form. Change it's DataSource property to Data control.
    Press F5 to test your project.


    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]



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