Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query is not returning data....

Status
Not open for further replies.

jeffmoore

Programmer
Aug 29, 2003
301
US
Below is the query i'm tring to run. The query works fine in all regards except when i put 'Like "*"' in to the true part, then the query returns Zero records Instead of all the records. I have checked the 'IsNull' expression using the Immeadeate window of VBA and my expresion DOES return a null where it should .... HELP...

IIf(IsNull([Forms]![ReturnedGoodsrpt]![Customer]),Like "*",[Forms]![ReturnedGoodsrpt]![Customer])

TIA
jeff
 
The way you are using the LIKE operator it will return all records where it finds a '*' in the field. What does the rest of your query look like?
 
Jef,

Just replace the 'like "*"' with the name of the field you try to display and it should work fine.

Regards,

Bitbuster
 
I solved it...

Like (IIf(IsNull([Forms]![ReturnedGoodsrpt]![Customer]),"*",[Forms]![ReturnedGoodsrpt]![Customer]))

Returns the correct data...

Thanks for the help
jeff

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top