Thanks to script parameters you can do it with one script. ( I remember doing this with 26 scripts in 5.5 and it was a major pain! )
Use this script:
Enter Find Mode
Set Field [YourTable::YourNameField ; Get ( ScriptParameter ) & "*" ]
Set Error capture [on]
For each button, pass the appropriate letter of the alphabet as a script parameter.
So much easy!!
Three minutes and it is working on A button.
Ok - refreshing an old post - what I'd like to do is use the Button Name as the script parameter... so that clicking the button named 'Fred' inititiates a search for Fred's records...so that if new staff, just put up a new button..
Tried naming the button, and using Get(ActiveLayoutObjectName) as a Script Parameter to pass that name to the script as the search criteria, not working ...
any help appreciated