Hi All,
I have a listbox, lstOP_History that is populated depending on which query is selected. I want to put a line of code that can detect if there are no records in the listbox as a result of the queries.
I have tried " If me.lstOP_History.recordset Is Null, then"
but I get a runtime error 424, Object Required.
I am not sure if the code I used is the proper code to determine if the listbox is empty.
Please help.
Thanks!!
I have a listbox, lstOP_History that is populated depending on which query is selected. I want to put a line of code that can detect if there are no records in the listbox as a result of the queries.
I have tried " If me.lstOP_History.recordset Is Null, then"
but I get a runtime error 424, Object Required.
I am not sure if the code I used is the proper code to determine if the listbox is empty.
Please help.
Thanks!!