Newbies hydrochlorik Posted May 10, 2004 Newbies Posted May 10, 2004 I am having a problem with auto-entering serial numbers into a Packing List file. What i want to do is for every packing list number have the item number field start generating from "1". i.e. Packing List # 398335 have the item numbers start generating from one and continue in increments of one. then when I create a new packing list number....let's say 398337, I want to have the item number field revert back to generating numbers from one. I hope that my explanation is clear. Thanks.
Fitch Posted May 11, 2004 Posted May 11, 2004 Make a self-relationship, packing list number::packing list number, let's call it packlist. Then either by script or auto-enter calc, set the item number to Max(packlist::item number) + 1
Newbies hydrochlorik Posted May 11, 2004 Author Newbies Posted May 11, 2004 Thanks Tom! That seemed to work.
Newbies Patrick Kuras Posted May 24, 2004 Newbies Posted May 24, 2004 I have a nearly identical requirement, and I tried this technique. I would prefer to create the related records (i.e. those which would contain the "restarting" sequence numbers) by entering data into a portal. It only seems to work when the max(myfield) expression is reevaluated, and this is not predictable. Sometimes it works and sometimes it doesn't. Any thoughts?
Recommended Posts
This topic is 7749 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