tjcinnamon
Registered User.
- Local time
 - Yesterday, 19:50
 
- Joined
 - Jan 26, 2006
 
- Messages
 - 66
 
I have a query that the user can customize. It has a number of condtions to sort by, Vendor, FileNumber, InvoiceNumber, Person, Allocation, ect...
In the conditions of the query I use a like iif statement for all of the combo boxes:
Like IIf(IsNull([Forms]![QuerySwitchboard]![InvoiceCombo]),"*",[Forms]![QuerySwitchboard]![InvoiceCombo]) all of which work fine except for the FileNumber (which is actually a string). Here is the statement: Like IIf(IsNull([Forms]![QuerySwitchboard]![FileNumberCombo]),"*",[Forms]![QuerySwitchboard]![FileNumberCombo])
It's exactly the same as the Invoice number Like IIf, so I'm not sure why this statement is not working.Could it be because FileNumber is a foreign key in a table.
Ideas appreciated,
JOe K.
 In the conditions of the query I use a like iif statement for all of the combo boxes:
Like IIf(IsNull([Forms]![QuerySwitchboard]![InvoiceCombo]),"*",[Forms]![QuerySwitchboard]![InvoiceCombo]) all of which work fine except for the FileNumber (which is actually a string). Here is the statement: Like IIf(IsNull([Forms]![QuerySwitchboard]![FileNumberCombo]),"*",[Forms]![QuerySwitchboard]![FileNumberCombo])
It's exactly the same as the Invoice number Like IIf, so I'm not sure why this statement is not working.Could it be because FileNumber is a foreign key in a table.
Ideas appreciated,
JOe K.