RickK Posted October 10, 2002 Posted October 10, 2002 Need help or suggestions for this task: Two databases with a relationship. db #1 is our shipments database, db #2 is a informational database. The problem is getting the final ship date from the "shipments" db into the "info" db. The shipments database might have 1-10 shipments (individual records) for a specific job number before the shipment is marked as completed. When marked as complete a date field is filled in with the corresponding final ship date (the relationship is based upon a job number). The final shipment is not always the last shipment. I've used "look-up", I've tried a calucation, but the trouble I'm have is getting it to look through all records with that job number and find the one with the "completed" ship date Maybe I need to run a loop script? Any ideas thx
slstrother Posted October 11, 2002 Posted October 11, 2002 One way to do this is to use the Max function. In your Info db, create a calc field: Final_Shipment= Max(shipments::ship_date) This assumes that you have a relationship from the Info db to the Shipments db based on the job number (sorry, your post wasn't clear). The date field you use in the shipments db can be the one used on each shipment or another date field that is used for the final shipment. Hope this helps
Recommended Posts
This topic is 8150 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