lonesomejubilee Posted August 24, 2004 Posted August 24, 2004 Hi. I am trying to write a script that will take me from my form layout and print a report for today only. The problem is that when I use scriptmaker and enter the 'today's date' from the menu, as my specify from the print, it doesn't work. I have to manual go into find mode to get it done.... Even better, can anyone tell me how to make a script that will allow the user to enter a date at run-time for printing Vandy
-Queue- Posted August 24, 2004 Posted August 24, 2004 Enter Find Mode [ ] Set Field [table::date; Get(CurrentDate)] Perform Find [ ] or Create a relationship from a global date field to the static date field and, Set Field [table::globaldate; Get(CurrentDate)] If [not IsEmpty(relationship::serial)] Go to Related Record [show; relationship] Else Show Custom Dialog ["There are no records for today."] End If For user defined dates, use a global date field. Enter Browse Mode [ ] Set Field [table::globaldate; ""] Go to Layout [Report Find] Pause/Resume Script [ ] If [not IsEmpty(table::globaldate)] If [not IsEmpty(relationship::serial)] Go to Related Record [show; relationship] Else Show Custom Dialog ["There are no records for that date."] End If Else Show Custom Dialog ["You have not entered a date."] End If Go to Layout [Original]
Recommended Posts
This topic is 7743 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