Results 1 to 4 of 4
  1. #1
    emarchant is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    12

    Help Updating Form Field

    I have a form that users input data into for each PO on an Entry document.



    The info would look like this:

    Entry# PO# Weight Cost BU BU%
    1234 ABC 100 $100 RT
    1234 DEF 200 $150 RT
    1234 GHI 100 $100 WH

    I have a query that ultimately calculates the BU% based on weight. The total weight on the Entry# is in another table. The query successfully calcs the proper percentage.

    Here is my problem: I cannot get that percentage into my table/form! I can't use an update query because I have used "Group by" in my queries and keep getting the "Operation Must Use an Updateable Query" error message. I want my data to look like this in the table/form:

    Entry# PO# Weight Cost BU BU%
    1234 ABC 100 $100 RT 75%
    1234 DEF 200 $150 RT 75%
    1234 GHI 100 $100 WH 25%

    How can I do this??? I am in Access 2007.

    Thanks so much for your help!!!!!!!!!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    save the first part into a temp table and then insert that into your main table.
    so have that temp table store the info for that series of data entry (the 3 you have listed). Then INSERT INTO your main table.

    INSERT INTO masterTable (Entry#, PO#, Weight, Cost, BU, BU%)
    SELECT * FROM tempTable

  3. #3
    emarchant is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    12
    I have never created a temp table before... how do I do that?

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    If you don't the slow speed, try following:
    update tablea set [BU%]= davg("BU", "OtherTable","[entry#]=" & tablea.[entry#])

    Note: If [entry#] is not a number, you need to put it inside ''.

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

Similar Threads

  1. Form Updating
    By stevman22889 in forum Forms
    Replies: 3
    Last Post: 07-20-2010, 12:07 PM
  2. Updating a field
    By JohnBoy in forum Programming
    Replies: 24
    Last Post: 04-18-2010, 08:43 AM
  3. Replies: 4
    Last Post: 03-05-2010, 09:56 PM
  4. Updating Table field from Form
    By Kunuk in forum Access
    Replies: 0
    Last Post: 02-26-2009, 11:41 PM
  5. Updating SQL server form Access form?
    By slash75 in forum Forms
    Replies: 1
    Last Post: 09-06-2008, 02:39 PM

Tags for this Thread

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