HI
I have a VB 6 form, which has a combo box to select an order number and a few order fields. The idea being that I’d like to drop down the combo box, a list of order numbers will appear (from a table called order) and then when a number is selected, the order fields on the form automatically display the corresponding information for that order. I want to be able to change this data to. For example, I want to select order number “PO004” from the combo box. The order customer name and order description fields should be displayed for that order and I may need to change the description and have it saved to the database.
The data is in a SQL database and I have created a data environment and a command, which returns the relevant information. The combo box data source is set to the data environment. The combo box data member is set to the command but for some reason, when I run the program, only one order number appears in the combo box and it doesn’t list the other orders when I drop down. Any ideas would be gratefully recieved!
Thanks
Andrew
I have a VB 6 form, which has a combo box to select an order number and a few order fields. The idea being that I’d like to drop down the combo box, a list of order numbers will appear (from a table called order) and then when a number is selected, the order fields on the form automatically display the corresponding information for that order. I want to be able to change this data to. For example, I want to select order number “PO004” from the combo box. The order customer name and order description fields should be displayed for that order and I may need to change the description and have it saved to the database.
The data is in a SQL database and I have created a data environment and a command, which returns the relevant information. The combo box data source is set to the data environment. The combo box data member is set to the command but for some reason, when I run the program, only one order number appears in the combo box and it doesn’t list the other orders when I drop down. Any ideas would be gratefully recieved!
Thanks
Andrew