CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    13

    Talking how to store data from combo box

    how to store data in the sqlserver database table that will be selected from the combo box.
    Thanks in Advance.
    Last edited by pran_chorge; March 21st, 2008 at 02:50 PM. Reason: to mention name of database

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: how to store data from combo box

    Which database are you talking about? In case it is SQL Server that you are are talking about then You can just use an Insert Query with a SQLCommand object. Look at SQLConnection, SQLCommand on MSDN. They have enough example code over there.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: how to store data from combo box

    You usually get the db for the combo, and then choose. What do you mean?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured