Results 1 to 2 of 2

Thread: [B]read a number from a textbox and write it in a database[/B]

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    9

    Question [B]read a number from a textbox and write it in a database[/B]

    I'm using visual basic 2005 express edition

    I want to made a program that read a number or date
    then must the program write it in a database (acces = .mdb)
    I have try to see the database in a dataviewgrid, that has succeeded
    but now i want a textbox where you can put in a number or a date
    then the program must save it in the database
    how can i do that

    VB Code:
    1. Me.BindingSource1.EndEdit()
    VB Code:
    1. Me.DataGridView2.Update(Me.DataGridViewTextBoxColumn1.DataPropertyName) = txtdatin.Text
    that last code doesn't work --> .DataPropertyName

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [B]read a number from a textbox and write it in a database[/B]

    From what you posted, I have a strong feeling that you don't know much about ADO.net. I suggest you spend some time reading some of the tutorials about ADO.Net here in the forum... In oder to solve a problem, one must understand it first...

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