Results 1 to 2 of 2

Thread: Access Table in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    14

    Access Table in VB

    does anyone know how to put an access table on a VB form


    i need to put one there so i can display data

    thanks

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Access Table in VB

    The simplest way to connect to MS Access database is as follows:

    - add DataGrid to your form
    - add ADODC (ado data control)
    - right click on the ADODC and select ADODC Properties
    - while in Property Pages select Use Connection String and click Build button
    - when new dialog appears select Providers tab and select MS Jet 4.0 and click Next ...
    - you should be now on Connection tab so follow simple instruction there
    - click OK button
    - select RecordSource tab (Property Pages dialog)
    - select Command Type from the drop down box and follow rest of instructions.
    - you must be done by now so you can click OK button to close Property Pages
    - select DatGrid on your form and in the property window set Datasource to ADODC1.

    Run your project.

    NOTE: this is NOT efficient way at all but is a good starting point. Eventually you will have to learn how to use ADO library with some other unbound controls.

    Good luck.

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