query help

securityman

Board Regular
Joined
Mar 5, 2005
Messages
128
I have a query that filters voided records. If the voided record's "Comment" field has the words "Rejected - over 96,000 lbs.", that record will go into the report that the query feeds. But if someone adds any other words to the comment field after the "rejected...." comment, the record does not appear in the report. How can I get any record that starts with "Rejected- over 96,000 lbs." with any thing after that to appear in the report? Can I use a wild card in the criteria of the query?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
You should be able to.
You can also use Instr to check if that text appears in the field. If the result is greater than 0 it's in there and should go in the report.
 
Upvote 0
Thanks, guys.....I'll try your way Trevor G.
Richard, how would I write the criteria? Instr("Rejected - over 96,000 lbs.")?
 
Upvote 0

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top