Thank you for your post.
Make sure the "Avery 5160" script reads as follows:
Allow User Abort [Off]
Perform Script [ "Set Windows Values" ]
If [ Contact_Self:: k_ID_Contact ]
Go to Related Record [ Show only related records ; Match found set ; From table: "Contact Management" ; Using layout: "Avery 5160" (Contact Management) ]
Sort Records [ Restore ; No dialog ]
View As [ View as List ]
Pause/Resume Script [ Indefinitely ]
Perform Script [ "Go to Previous Layout" ]
Show Custom Dialog [ "Missing Data" ; "No matching records were found." ]
As you can see, this script calls another script - Set Windows Values. In the true portion of the "If" construct, another script is called - Go to Previous Layout - so make sure both of these scripts are present. If not, you will get the error message "The script cannot be found or has been deleted."
Perfect, that worked!
How do I modify which fields appear in the label, though? For example, the starter solution layout (and thus script) did not include a field for "country" and since we have several international clients, we need to have the country field in the Avery 5160 script. How can I add fields, and determine which order they appear in?
I've messed around in -> manage -> scripts but can't seem to make it work! I swear this is my last question, I'm really close to being finished!
First of all, I'm glad it worked!
Second, don't worry about how many questions you ask. That is what this forum is for!
If you go to the layout where the Avery 5160 is displayed, pull down the View menu and select "Layout Mode". Along the top of the window, there will be a number of icons. If you place your cursor on top of one of these icons, a tooltip will display (in about a second) with information about that particular icon. Towards the right side is the Field tool. Click down on this icon and drag it onto the label form. When you let go, you will be prompted for a field. Select the Country field. You can then either drag it or use the arrow keys to get the field to a precise location. Under the Format menu, you can change the Font, size, style, color, etc. If you need to make the field a little longer, drag the right corner to the right, or drag the right corner to the left to make it smaller.
This should get you pointed in the right direction. Let me know if you need clarification for any of the above steps.
Done and done! Thank you so much!