Results 1 to 2 of 2
  1. #1
    Wayne2072 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    1

    Need help with update query / queries


    This is my first post to the forum, and I want to preface by saying that I am a career mainframe programmer (using COBOL/DB2) who recently started a temp to perm job which, among other things, uses Access 2007. So, pardon any ignorance on my part. I'm trying to get up to speed on Access quickly.

    I have a report that is sent to us in Word or .pdf format. It is a bill of daily charges for storage. Basically, the first 24 items are stored for "free" (price included in original contract negotiation). Any additional are billed at the rate of $X per day. The items can belong to one of two divisions, but this is not specified on the report (as the company billing really doesn't care about breaking it down by our divisions, as long as our company pays )

    Currently, someone is having to review that report each month, and for each item, go to an application program and determine the owning division based on a control office listed on the item. This takes between 5-8 hours, depending on the length of the report.

    What I have done so far is this. I took the report and dumped it into Excel. I also ran a report that lists a summary of the control office for the items and saved as Excel. Then, I created a conversion table, matching the control office to the owning division in Excel. I imported these 3 spreadsheets into Access. I created queries to do the joins and created queries to basically add the owning division to the report.

    There's one catch... one of the two divisions never gets a free item. In other words, if one of theirs falls into the first 24, they still need to pay for it (and add a freebie and take away a pay from the other division).

    That's where I'm currently stuck. What I need is an update query or queries that will go through the report that now contains the owning division, and makes sure those adjustments occur automatically. I was reading up on how to update one row at a time in Access, but what I need, bascially, is.... if, for example, division A never gets the freebie, and division B always gets them, and on 5/1/2010 there were 3 freebies listed for division A, I need to change those 3 to paying $X and take 3 of division B's where there is a charge of $X and make it free. How do I accomplish that with queries so that only the amount of rows that need to be updated are updated? I want to be able to run the query or queries against the entire monthly report to correct the amounts, and then summarize it with queries summarizing the totals for the month, so that they can get that report in the matter of minutes and have the final, actual total, vs. spending 5 to 8 hours to work it.

    Sorry for such a long post. Again, I'm fairly new to Access, and know there is probably an easy way to do what I want to do. But, just something I don't know yet. I know how I would do it with COBOL/DB2, but that doesn't apply here.... Thanks for any help you can provide!!!

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Wayne can you give me the tables that you have in the database and exactly what you want to do. I think I can help you.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 04-04-2010, 06:14 PM
  2. Query based on two queries
    By mela in forum Queries
    Replies: 1
    Last Post: 12-08-2009, 05:57 PM
  3. Update Query- selective update?
    By stephenaa5 in forum Queries
    Replies: 1
    Last Post: 10-29-2009, 11:15 AM
  4. Two Queries not getting along in another query
    By colorado in forum Queries
    Replies: 1
    Last Post: 06-29-2009, 03:24 PM
  5. Combining like update queries
    By xcr800man in forum Queries
    Replies: 2
    Last Post: 05-20-2008, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums