Latest News

the latest news from our team

Using Data Access Objects (DAO) MS Visual Basic with Minisoft’s ODBC Driver

Getting Started

Create a new blank project:

  1. Place a ‘Data’ object on your form.odbc_u05

 

  1. In the ‘Connect’ property, type the string “ODBC;DSN=datasource” (without quotes). Replace datasource with the datasource name you entered for the connection created in the 32bit ODBC Administrator.msvb2

 

  1. Go to the ‘RecordSource’ property and click on the dropdown arrow.ODBC_f03

 

  1. After a few moments, a list of datasets will appear. Select one.ODBC_f04

 

  1. Add a TextBox to your form.ODBC_f05

 

  1. The DataSource dropdown list has the name of the Data object you added earlier. Select it.ODBC_f06

 

  1. The DataField dropdown box will now have the fields available in the dataset you selected. Select one.ODBC_f07

 

  1. Run the application.
  2. The TextBox contains the value of the field you selected from the first record in the dataset. Use the left and right arrows to scroll through the data. You can add other fields as additional text boxes.ODBC_f09

Leave a Reply

Your email address will not be published. Required fields are marked *