Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Access Database Update

Access Database Update

Access Database Update

I am new to using databases and I am struggling with this problem. I am using a VB program to automate a measurement process where I read via a com port some measurements and I want to place them in an access database. I wrote the the code to add a new row with all the data but when I go to look at it in another windows form where I view the database nothing is updated. Below is the code for the btn to create the new data row and update the database. Any help would be much appreciated.

    Public Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click

        ' Create a new row.
        Dim newRegionRow As ISDMeasurementDataset.Inside_LengthRow

        newRegionRow = Me.IsdMeasurementDataset1.Inside_Length.NewInside_LengthRow
        'newRegionRow.AutoNumber = ""
        newRegionRow._Date = date1
        newRegionRow.Time = time1
        newRegionRow.Style = myShoeData.Style
        newRegionRow.Model = myShoeData.Model
        newRegionRow.Gender = myShoeData.Gender
        newRegionRow.Size = myShoeData.Length
        newRegionRow.Width = myShoeData.Width
        newRegionRow.Last = myShoeData.Last
        newRegionRow.Measurement = myShoeData.ISL(1)
        newRegionRow._Operator = myShoeData.ISL(1)

            ' Save the new row to the database


        Catch ex As Exception
            MsgBox("Database Update failed")
        End Try
    End Sub  

RE: Access Database Update

I figured it out. I need to perform the accept changes after the Update () setting.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close