abomb Posted July 6, 2006 Posted July 6, 2006 Hello all, Need a little help. I have a database for creating quotes and then processing them to jobs. Thought I had things working great then noticed a big problem. Three Tables Quote QuoteItem Job Each quote can have many items. If a quote becomes a job, all the items quoted may not be included. I've set up the database around the QuoteItem Table. When a quote becomes a job, I find the right quote through its ID, select the items that are included on the Purchase Order(which is listed through a portal) via a Yes/No field. When Yes is selected, a lookup is performed and the JobNumber is inserted on the QuoteItem Record. Now through a script, I can print an Acknowledgment and Job Card with only the Items That show "Yes." The problem is the summary field on the Acknowledment (which is based off the found QuoteItem Records via Yes/No) still sums the items that have "No" which makes the Job total incorrect. I've tried acouple of calculation fields but nothing seems to work. I'd rather not erase records on the quote so I have them on record. Any suggestions would be greatly appreciated.
Fitch Posted July 6, 2006 Posted July 6, 2006 Summary fields are based on the found set. So if you have found the "Yes" records, then a Summary that is a total of amount (or whatever your field is called) should in fact only total the found records. Are you actually using a Summary field or are you using a calculated field that is something like Sum(related::amount)?
abomb Posted July 6, 2006 Author Posted July 6, 2006 That was it. I had my summary field on the wrong table. Thank you so much! It works now.
Recommended Posts
This topic is 6777 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