I'm building a database and am currently trying to input a search function. The problem is, it's a little complicated for a combo box and I'm not exactly a wizard with Access (or Visual Basic, which is something this seems it will require). I have never done any real training in any of this, and only know what I've been able to figure out from pulling apart previous databases and from Google so I apologize for all the gaps I have in my knowledge about this stuff.
I've created a query and a search form, and the two are even linked. When the search form is empty, it will pull up all records. The moment I type something into any of the boxes, even if I know there is data it should pull up, it all comes up empty. Currently I have the query criteria set to the following:
Code:
Like [Forms]![f-CCWaitListSearch]![txtCRLast] & "*"
or
[Forms]![f-CCWaitListSearch]![txtCRLast] is Null
There are 12 boxes people need to be able to fill in to search, but four are true/false and one is a date (so far, I've left all that blank in the query so I don't know if that has something to do with it). I need the database to be able to search any of the boxes, with both complete and incomplete information (for example, they have the first and last name, just a last name, or just part of the last name).
I've also added the following in VB for the search form:
Code:
Me.txtPIMS.Value = ""
Me.txtCRFirst.Value = ""
Me.txtCRLast.Value = ""
Me.txtCGFirst.Value = ""
Me.txtCGLast.Value = ""
Me.txtCounty.Value = ""
Me.txtAssessor.Value = ""
Unless I am much mistaken, that just clears out the search boxes for the users and the search wasn't working right before I added that to the mix, but I thought it might help to have everything cleared out.
I'd appreciate any help you can give me!