TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 303
- Office Version
- 365
- Platform
- Windows
I have a form with a combibox, a listbox and a textbox.
The user selects a category from the combibox and I have some logic that populates the listbox with subcategories relevant to the category.
The user then highlights one of the items in the listbox and enters a new value for it in the textbox. This drives a SQL query that will update the record in a database. Except I can't manage to get the code to detect which item in the listbox has been selected. Consequently, my SQL UPDATE statement looks like this
where the last bit of the code has nothing in......so it's not picking up the highlighted item.
Many thanks.
The user selects a category from the combibox and I have some logic that populates the listbox with subcategories relevant to the category.
The user then highlights one of the items in the listbox and enters a new value for it in the textbox. This drives a SQL query that will update the record in a database. Except I can't manage to get the code to detect which item in the listbox has been selected. Consequently, my SQL UPDATE statement looks like this
Code:
UPDATE Reporting_Test SET Subcategory = 'ValueFromTextBoxHere' WHERE Category = 'ValueFromCombiBoxHere' AND Subcategory = 'ValueFromListBoxHere'
where the last bit of the code has nothing in......so it's not picking up the highlighted item.
Many thanks.