11 Years
Discussion Span
Last Post by debasisdas

perform these steps:-

1.open vb6 and create a new project
2.save the project
3.tools->visual data manager
4.file->new->microsoft access database->version 7.0 mdb
5.select the folder where u saved ur project
6.enter new db name and click create
7.right click on database window->new table
8.enter new table name->click add field
9.enter a field name and mention its type
10.click ok->close
11.click build the table
12.double click on the table name to open it
13.click add
14.enter some data
15.close vis-data
16.in the form take a textbox and a data control
17.select datacontrol and press f4
18.select databasename and locate ur access db
19.scroll down and select recordsource and select the table from list
20.open properties of the textbox
21.select datasource and make it to the datacontrol's name
22.select datafield and select the field u created in the table
23.save ur work and press f5
24.use navigation buttons of datacontrol to browse between the records


why u don't u use the wizard instead.
when u start a new project/form choose the data wizard.

only make some selections .no need to add any code

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.