Hi all
I'm working on a customer service ticket application and need a little help.
controls involved:
cmbRequestType: Combobox that holds the request types
lstClosedReq: Listbox that displays all closed request by request type from cmbRequest
subViewClosed: subform that displays the notes per request highlighted in lstClosedReq
The purpose is for a user to be able to go back to all the old data requests submitted and review the comments and progress as needed. This works fine until I get to a request type that does not contain any closed requests. lstClosedReq will display no records as it should. However, subViewClosed will show the notes of the last valid closed request. What I am trying to do is have subViewClosed be empty as well.
Me.subViewClosed.Requery is what I tried but the query that it is bound to has lstClosedReq as criteria. If there is nothing selected, it is not changing the requestID.
My current idea is on the after update event for the combobox to check the rowcount of the listbox and write the query for the subform on the fly. However, I'd prefer to have as little SQL in VBA as possible. Any other ideas?
Thanks.