I'm new to daniweb community.it seems to be veyr useful.hope now someone wil definetely help me solve my problem in vb6.
I've a combo box that displays the name of the customers and also a text box that must display the number of the customer.. but in my project i'm able to display the name of the customer in the combo box but the value of text box is not updated.. i'm using ms access as back end.. could any one pls help me with code
Recommended Answers
Jump to PostYou need to use the Combobox.Listindex property to determine which customer was selected -
'After opening your recordset and connection UNDER your combo click event, the following... Dim xIndex As Integer xIndex = Combo1.ListIndex rs.AbsolutePosition = xIndex 'This will move to the correct recordset Text1.Text = rs!YourFieldNameHere …
Jump to PostAre you using a data control or adodb (code)
All 8 Replies
AndreRet
526
Senior Poster
jaai
14
Light Poster
AndreRet
526
Senior Poster
jaai
14
Light Poster
AndreRet
526
Senior Poster
jaai
14
Light Poster
AndreRet
526
Senior Poster
santhanakrishnan
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.