not sure exactly what you're getting at here... but if you're looking for a script that makes it easy to enter a date range and have a script that performs a search based on that date range, then I would suggest the following:
1. Create two global date fields for entering a start date and end date
2. Create a script that enters find mode, then inserts the calculated result into the dat field you wish to search on. The calculated result should be table::datefield_global1 & "..." & table::datefield_global2
then perform find
Start you script with error capture turned on an setup conditions after perform find that will trap for errors. To be even safer, setup checks before the perform find to check if there is a start and end date entered, or just end date.
I hope this makes sense...? I hope this helps??
Thanks tried this but have subsequenly realised that putting the appointment records as a tab was wrong.Thanks for your input greatly appreaciated