Newbies pigpants Posted March 30, 2003 Newbies Share Posted March 30, 2003 I'm trying to create shipping labels that would return a running count. The user would enter number of boxes, then the labels would return a count for each label. i.e.: 10 boxes would return a "1 of 10", "2 of 10", etc. etc. for each label. I'm a bit of a novice, so any help is GREATLY appreciated. thanks, Michael Link to comment Share on other sites More sharing options...
danjacoby Posted March 31, 2003 Share Posted March 31, 2003 You could create a script that temporarily creates new records for shipping purposes: First, create a "LabelNo" field that returns a number, and have it auto-enter a "1". Now create a global field ("gLabelNo") that returns a number. Finally, create a calc field, "ShippingLabelInfo", with the following calc: LabelNo & " of " & BoxesNo (Note the spaces on either side of the word "if") Finally, perform a find for all records where LabelNo > 1 (yeah, you might want to create a phony record first). Now the script (BTW, I'm calling the field where the number of boxes is entered "BoxesNo"): Show All Omit Record Show Omitted (So far, we've set things up to be just the current record) If BoxesNo > 1 Set Field (gLabelNo, 2) Loop EndLoopIf (LabelNo = BoxesNo) Duplicate Record Set Field (LabelNo, gLabelNo) Set Field (gLabelNo, LabelNo + 1) End Loop (Now we have one record for each label) Print Perform Find (Restore, Replace Found Set) Delete All Records (No Dialog) Link to comment Share on other sites More sharing options...
Newbies pigpants Posted April 1, 2003 Author Newbies Share Posted April 1, 2003 Worked like a CHARM. I really can't thank you enough for your help, it is MUCH MUCH MUCH appreciated!!!!! thanks! -Michael Link to comment Share on other sites More sharing options...
danjacoby Posted April 1, 2003 Share Posted April 1, 2003 That's why I get the big bucks. $75/hr., actually. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7861 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