Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Create update query for remaining records in microsoft.public.access.queries

Started 4 weeks, 1 day ago by accesshacker
Need to create an update query that will add records to a table that when summarized equals the amounts in another table when compared. I know how many units I need to add, the problem comes in when I need the update query to not over allocate the units. Basically, in one table I know I have one record that shows 20 units that I need to...
Site: Discussions in microsoft.public.access.queries  Discussions in microsoft.public.access.queries - site profile
Forum: microsoft.public.access.queries  microsoft.public.access.queries - forum profile
Total authors: 2 authors
Total thread posts: 7 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

KARL DEWEY replied 4 weeks, 1 day ago
Post the table name, field names, datatype, and sample data. How do you expect to allocate 20 into 39? 5 into 39? -- Build a little, test a little. "accesshacker" wrote: > Need to create an update query that will add records to a table that when > summarized equals the amounts in another table when ...

accesshacker replied 4 weeks, 1 day ago
Table #1(ALLOC_UNITS) Table #2(ITEM_ALLOC_TEST) Fields/Type Fields/Type Deal – Text Deal – Text PO# - Text PO# - Text Item – Text Item - Text Units - Number SN – Text Remain – Number T_TYPE – Text Rank – Number TALLOC - Number Data Table #1 Deal PO # Item Units REMAIN CARO ...

KARL DEWEY replied 4 weeks, 1 day ago
>>Currently, it populates all 21 with 1. I do not see anything populated with one. What field(s) in table1 gets reduced to zero? Units or REMAIN? What field in table2 has a quanity from table1 add to it? -- Build a little, test a little. "accesshacker" wrote: > Table #1(ALLOC_UNITS) ...

accesshacker replied 4 weeks, 1 day ago
The query I have been working on is populating the 1. No fields are being reduced to zero. Table #1 is only a holder for what is remaining. I am testing right now and only using one Item from one PO#. There are a total of 1,753 items across several PO#s. I have allocated the majority of units and in some instances still have some ...

KARL DEWEY replied 4 weeks, 1 day ago
>>I was trying to add the 1 in the query until it equals the 20 and then stop. What field in table 2 is it being add to? How about posting the SQL of your query. -- Build a little, test a little. "accesshacker" wrote: > The query I have been working on is populating the 1. No fields are being >...

accesshacker replied 4 weeks, 1 day ago
It will be added to TALLOC in Table #2 Here is the SQL SELECT ITEM_ALLOC_TEST.Deal, ITEM_ALLOC_TEST.[PO #], ITEM_ALLOC_TEST.Item, ITEM_ALLOC_TEST.SN, ITEM_ALLOC_TEST.ST_TYPE, ITEM_ALLOC_TEST.Rank, FNEGR() AS ADDL FROM ITEM_ALLOC_TEST INNER JOIN NEG_ALLOC_UNITS ON (ITEM_ALLOC_TEST.Item = NEG_ALLOC_UNITS.Item) AND (ITEM_...

 

Top contributing authors

Name
Posts
accesshacker
4
user's latest post:
Create update query for...
Published (2009-11-05 17:13:00)
  It will be added to TALLOC in Table #2 Here is the SQL SELECT ITEM_ALLOC_TEST.Deal, ITEM_ALLOC_TEST.[PO #], ITEM_ALLOC_TEST.Item, ITEM_ALLOC_TEST.SN, ITEM_ALLOC_TEST.ST_TYPE, ITEM_ALLOC_TEST.Rank, FNEGR() AS ADDL FROM ITEM_ALLOC_TEST INNER JOIN NEG_ALLOC_UNITS ON (ITEM_ALLOC_TEST.Item = NEG_ALLOC_UNITS.Item) AND (ITEM_ALLOC_TEST.[PO #] = NEG_ALLOC_UNITS.[PO #]) AND (ITEM_ALLOC_TEST.Deal = NEG_ALLOC_UNITS.Deal) GROUP BY...
KARL DEWEY
3
user's latest post:
Create update query for...
Published (2009-11-05 16:47:00)
  >>I was trying to add the 1 in the query until it equals the 20 and then stop. What field in table 2 is it being add to? How about posting the SQL of your query. -- Build a little, test a little. "accesshacker" wrote: > The query I have been working on is populating the 1. No fields are being > reduced to zero. Table #1 is only a holder for what is remaining. I am > testing right...

Related threads on "Discussions in microsoft.public.access.queries":

Related threads on other sites:

Thread profile page for "Create update query for remaining records in microsoft.public.access.queries" on http://www.microsoft.com/communities/newsgroups.... This report page is a snippet summary view from a single thread "Create update query for remaining records in microsoft.public.access.queries", located on the Message Board at http://www.microsoft.com/communities/newsgroups.... This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity