I have done a fairly thorough review of this topic in the forums, but I have not a found one that addresses what I need to do, or least one that I interpret well enough.
I have a table [tblFlowNote] with the following fields
flownoteID, ClientID, FlowDate, FlowNote
I have a form [frmSearchMain] with a list box of available clients [listClients], a list box that accepts multiple clients selected from listClients [listSelClients], a check box [chkAllClients] which disables listClients (this is to allow the user to search all clients), Calendar Control 10.0 which sends selected dates to BeginDate and EndDate (for a date range search), and a text box [txtSearchCrit].
You can probably see where this is going. I want the user to be able to enter as little or as much search criteria to pull matching records. I have 'Search All Clients' and the date range pieces working, but I cannot get the list box or multiple criteria working. I believe they are related problems. The list box populates with a comma separtor.
I think I am having two primary problems. First, I hav found postings that allow users to use wild cards, but these seem to limit to a finite number of options. I mean, it appears you must code 'Like' statements for as many possible entries as the user may make. If I code up to three 'Like' statements and the user puts in four, it will not work. The second problem is using the list box. If I have more than client added to the list box, it returns no records. I think the code is reading the box as an whole search term, rather than parsing the entries by comma.
I know this is long-winded, but I wanted to give as complete descrition as possible. Any help is appreciated.
Thanks!
I have a table [tblFlowNote] with the following fields
flownoteID, ClientID, FlowDate, FlowNote
I have a form [frmSearchMain] with a list box of available clients [listClients], a list box that accepts multiple clients selected from listClients [listSelClients], a check box [chkAllClients] which disables listClients (this is to allow the user to search all clients), Calendar Control 10.0 which sends selected dates to BeginDate and EndDate (for a date range search), and a text box [txtSearchCrit].
You can probably see where this is going. I want the user to be able to enter as little or as much search criteria to pull matching records. I have 'Search All Clients' and the date range pieces working, but I cannot get the list box or multiple criteria working. I believe they are related problems. The list box populates with a comma separtor.
I think I am having two primary problems. First, I hav found postings that allow users to use wild cards, but these seem to limit to a finite number of options. I mean, it appears you must code 'Like' statements for as many possible entries as the user may make. If I code up to three 'Like' statements and the user puts in four, it will not work. The second problem is using the list box. If I have more than client added to the list box, it returns no records. I think the code is reading the box as an whole search term, rather than parsing the entries by comma.
I know this is long-winded, but I wanted to give as complete descrition as possible. Any help is appreciated.
Thanks!