Newbies pv63 Posted December 4, 2002 Newbies Share Posted December 4, 2002 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?:? Link to comment Share on other sites More sharing options...
andygaunt Posted December 4, 2002 Share Posted December 4, 2002 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 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7942 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now