December 4, 200223 yr Newbies I have file (report.fp5) where a user enters information for performing a find and creating a report with data from another file (checklist.fp5). On the report.fp5 file the user chooses the name (from a list), begining date, end date and a checkbox that let let him choose if he wants the report to have everybody from the name list or only the name he selected.Depending on his selection on the checkbox, a diferent script is run. >If [checkbox=""] >Perform Script ["individual report"] >End if >if [checkbox="all"] >Perform Script["group report"] >End if If I perform the scripts above individualy by going to the script menu and selecting the script they both work fine, however if I try to perfom them from the script showed above only the group report script works, the individual report stops in the middle. This is the Individual report script : >Set Field[date_range, DateToText(date_begining&"..."&DateToText(date_end)] >Go to Layout [report data] >Copy [date_range] >[select Entire Contents] >Go to related record [name to name] >[show only related records] >Peform Script [filename:"checklist.fp5" , "individual report"] >[sub-script] can anybody help?:?
December 4, 200223 yr Try changing your first IF statement to and also setting as an else (or adding an exit script before the end IF >If [ IsEmpty(checkbox) ] > Perform Script ["individual report"] >Else > if [checkbox="all"] > Perform Script["group report"] > End if >End if
Create an account or sign in to comment