Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 66,986 times

Contents

Related Categories

ADO Data Control - Running the Project

Running the Project

At this point, you’re ready to run the project so click F5. The form (in Figure A) displays the first record in the bound table (from Nwind.mdb). Click the navigational controls to move from one record to another. Remember, if you change the data in a record and then move to another record, VB will save the change.

Try to add a new record by first clicking the Last button and then clicking the Next button. The first click will display the last record in the bound table. The second click will display a blank record--if you’ve set the data control’s properties accordingly--as shown in Figure B. If your form doesn’t display a blank record, return to Design View, select the ADO data control and change it’s EOFAction property to 2 - adDoAddNew.

Figure B

Once you view a blank (new) record, you may encounter a problem if you try to return to a previous record. If your form includes any required fields, VB won’t let you leave the new record until you enter something in the required fields. This behavior includes primary key fields and any required fields you may not have displayed on your form. You can however, exit your form by clicking the Exit command button.

Comments

  • Posted by valilupu on 26 Sep 2005

    Well I think the code should look like:
    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = App.Path & "\db1.mdb"
    dcPekerja.RecordSource = "Select * From Table1;"
    E...

  • Answer...

    Posted by Desichoro on 23 Sep 2005

    Hi there... I went though your code and fond one mistake...

    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = App.Path + "db1.mdb"
    dcPekerja.RecordSource = "Selec...

  • Posted by valilupu on 14 Sep 2004

    Or not:confused:

  • Posted by valilupu on 14 Sep 2004

    Well i supose you do have the database in the same directory with the application on the other computer:D

  • helppp!!!!!!!

    Posted by kyoune on 23 Apr 2004

    i'm using adodc to connect to access
    but i'm having problem when i use the application on other pc...
    it say that it cant found the database file...

    i use this coding... but still the error is t...