That depends on your database, how the data is stored and the version of Crystal.
The most efficient means is likely to use 2 fields to take advantage of indexes.
How is this name getting entered? You aren't showing any parameters, are they hardcoded?
Presumably you want the users to enter the name in the form <Last, First>, so try the following:
Select Insert->Field Object->Right click parameters and select New
Name it NAME, type String.
Select Insert->Field Object->Right click formulas and select New
Name it Last, type String
Place the following:
left({?Name},instr({?Name},",")-1)
Select Insert->Field Object->Right click formulas and select New
Name it First, type String
mid({?Name},instr({?Name},",")+1)
Select Report->Edit Selection Formula->Record
Place the following:
(
{table.last} = {@Last}
)
and
{table.first} like {@First}+"*"
Try supplying more information in your posts, the basics being:
Crystal version
Database used
Example Data
Expected Output
-k