Tech_knowledge Posted March 26, 2005 Posted March 26, 2005 I have two seperate tables I can't get one field in the first table to update properly based on a field in the second table here is what I'm trying to do exactly in the Table 1 I have hours and everyone starts out with an initial 250 hours now in Table 2 a ticket is made and if that ticket takes 5 hours then I want that amount subtracted from table one and I can't get Table one to update at all I have a relationship going from one table to the other the field are as follows in Table one it's a number and the one in Table two is a calculation any help at all would be appreciated.
comment Posted March 26, 2005 Posted March 26, 2005 I am guessing here, as your description is rather sketchy: TABLE1 (people?): PersonID TABLE2 (tickets) TicketID PersonID Hours (number) The relationship is: TABLE1::PersonID = TABLE2::PersonID In TABLE1, field cHoursLeft (calculation, result is number)= 250 - Sum ( TABLE2::Hours)
Tech_knowledge Posted March 27, 2005 Author Posted March 27, 2005 No actually what I have is this TABLE 1: Package Hours: 250 TABLE 2: Hours Used: 6 I want the Hours Used to be subtracted from the Package Hours so you end up with 244 hours remaining and I can't get this done to save my life.
comment Posted March 27, 2005 Posted March 27, 2005 The same question, and another: TABLE1 is table of what?
Tech_knowledge Posted March 28, 2005 Author Posted March 28, 2005 Table 1 has customer information such as first name last name address and so on and the relationship is between last names
comment Posted March 28, 2005 Posted March 28, 2005 It's the same answer as above: create a new calculation field in TABLE1, with the following calculation: Package Hours - Sum ( TABLE2::Hours Used) Incidentally, two or more customers can share the same last name, so it's advisable to base relationships on serial numbers instead.
Tech_knowledge Posted March 28, 2005 Author Posted March 28, 2005 Thanks guys that advice worked perfectly
Recommended Posts
This topic is 7238 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