June 20, 200718 yr I am sure it is easy and I am just missing something, but this script is giving me fits this morning. I am trying to run a script that will find all receipts created on a certain date, then print labels for them. I have created a separate label layout, and if I do it manually everything works fine. I want to be able to do everything with the click of a button and a simple input of the date though. When I do the process manually, I perform the following steps: 1. Open New Window 2. Go to Layout (Pre-Paid) 3. Go to Field (Receipt Date) 4. Find whatever date 5. Go to Layout (Pre-Paid Labels) 6. Print Like I said, that works fine, but I can't seem to get the user input part of the script. I can make it work if I want to just use the current date, but sometimes we want to print other days. Here is the current script I have, after messing with it for a few hours: Print Today's Pre-Paid Labels Show All Records New Window [ ] Go to Layout [ “Pre-Paid Labels” (Pre-Paid) ] Go to Field [ Pre-Paid::Receipt Date ] [ Select/perform ] Enter Find Mode [ ] [ Pause ] Go to Layout [ “Pre-Paid Labels” (Pre-Paid) ] Print [ Records being browsed; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore ] Close Window [ Current Window ] What's missing or what am I doing wrong? Thank you for any input. I have always received great replies to my posts and everyone has been very helpful to this FM novice. Mike
June 21, 200718 yr I think you're just missing the PerformFind [] (without specifying requests) step. Then you can go on to the printing. Edited June 21, 200718 yr by Guest
June 21, 200718 yr I.e., you have entered Find mode, but then you have to actually Perform the Find. Also, your [Pause] should be part of the Find step (use the checkbox), not a separate step.
Create an account or sign in to comment