Hi Peeps,
Really hoping someone can help.
I'm trying to create a simple search page. I have many fields and have coded it like this....
In a text box you type what you want to search for. This then populates a global variable.. ie.. searchtext = "big"
I then have a public function like..
Function SearchFun()
If searchtext = "" Then SearchFun = "*" Else SearchFun = searchtext
End Function
In my query criteria I have Like SearchFun().. Now this works great if the field has something in it, BUT its not allowing Null values. How can I have it if the searchtext is blank is lists everything including Null Values ?
Hope I've explained myself well enough
many thanks,
Steve
Really hoping someone can help.
I'm trying to create a simple search page. I have many fields and have coded it like this....
In a text box you type what you want to search for. This then populates a global variable.. ie.. searchtext = "big"
I then have a public function like..
Function SearchFun()
If searchtext = "" Then SearchFun = "*" Else SearchFun = searchtext
End Function
In my query criteria I have Like SearchFun().. Now this works great if the field has something in it, BUT its not allowing Null values. How can I have it if the searchtext is blank is lists everything including Null Values ?
Hope I've explained myself well enough
many thanks,
Steve