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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wildcard parameter 1

Status
Not open for further replies.

wiplash

MIS
Jun 29, 2004
99
US
Using CR11

I need to create a parameter so the user can select only certain records beginning with a letter or letters AND is also able to just select all records in the db. Currently I'm using "starts with" in the selection criteria, but an * returns no data. If I change it to "like", then * works, but if they enter A, only A is returned, and they want to see AA or AAAA, etc.

Would appreciate any advice.

Thanks
 
You could use a record selection formula as follows:

[Code RecordSelection]
{YourTable.YourField} Like ({?YourParameter} + '*')
[/Code]

If nothing was entered it would return all records, otherwise it would return records starting with the character string entered in the parameter.

Cheers
Pete.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top