Results 1 to 34 of 34

Thread: [RESOLVED] VB only save one records to access db

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2018
    Posts
    10

    Resolved [RESOLVED] VB only save one records to access db

    Hello.

    Iam working on a little software for fun.

    Right now i am at "car service maintence"

    I have 3 databases connected to this project
    Cars
    Parts
    Service


    The first two works fine, i can save,remove,edit etcetc

    But the last one "service" iam only able to save once, then i get an error.

    Iam sorry that the interface is in Swedish. mostly..

    "Data sparad" = Data saved.

    And the second windows, explains itself.

    As you can see i can save the first record "batteri" 50:-

    But when i try to add "Olja" 500:-
    ive got an error


    I use the exact same code on the savebutton as the other ones wich is
    Try
    ServiceBindingSource1.EndEdit()
    ServiceTableAdapter1.Update(ServiceDataSet1.Service)
    MessageBox.Show("Data sparad")

    Catch ex As Exception

    MessageBox.Show("Error fix your ****")

    End Try

    The combobox is set to "short text" in access.

    Any ideas ?
    Attached Images Attached Images   

Tags for this Thread

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