We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,676 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

data from combobox into sqlserver database

hi every one!

I am creating an application in vb.net with sql server 2005 at backend. I have a table PURCHASE Order with 3 colunn i.e PO_Id ,Cus_id and PO_QTY . In front end i have a SAVE button, two TexTbox 'POrder no' , 'Order Qty' and combobox 'cutomer NAME' which retrive data from other table Cus_info i.e Cus_id , Name . My qustion is that when i select cutomer name from my combo box it and save the record it will store data with cus_id in database?.
Plz help . . .

2
Contributors
1
Reply
3 Hours
Discussion Span
9 Months Ago
Last Updated
2
Views
khair.ullah
Junior Poster in Training
55 posts since Aug 2012
Reputation Points: -2
Solved Threads: 3
Skill Endorsements: 0

just set the combobox.valuemember = your_field_name , and where you are getting the value of combobox just use this combobox.selectedvalue .

Regards

M.Waqas Aslam
Master Poster
743 posts since Aug 2011
Reputation Points: 50
Solved Threads: 120
Skill Endorsements: 2

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0542 seconds using 2.63MB