Microsoft
Software
Hardware
Network
Question : Access Search Form
I am creating a search form that looks up data in a query to display.
I have not had trouble with this in the past, using "*" & [formfield] & like "*"
However, with this form, I need it to pick up only either an exact number from certain fields or return all values if the field is blank. So, if a "2" is entered, I don't want it to return "12" or "21" but only "2"...this is my problem with using the wildcard here...but I was trying to use a wildcard in case the field is left blank.
The query is exclusive, so data picked up in two of the fields will only return records that meet both of those criteria.
I'm putting all of this in the query criteria for each field and requerying the form on Search.
I thought of having a bunch of complicated stuff like invisible asterisks in the fields that get populated, etc, but I thought someone would have a nice, good, solution instead. I looked at some other solutions, but didn't see what I need.
Thanks!!!
Answer : Access Search Form
"'use " no it is not a part, it is an instruction for what to use in the query
try using this in the query designer grid
Field name Field1
Table TableX
criteria iif([Forms]![NameOfForm]![
FormField]
is null,[Field1],[Forms]![Nam
eOfForm]![
FormField]
)
Random Solutions
Using MS Access Startup, I have a Form being opened. On the Form is a command button. I want to automate the click of that button to run VB code created when I built the form. Can/How do I do that?
How to test NLB Load Balancing?
Bios password forget
The "Vbc" task failed unexpectedly.
Two Terminal Services (win 2003 server) questions.
Microsoft Exchange Service Host Fails to start
The subscription(s) have been marked inactive and must be reinitialized
[MS-Word] Borders for Cells
MsgBox firing twice during OnCurrent event ???
Applying Adobe patch with a .msp file using Group Policy