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
Jump to Post
You 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 …
All 8 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.