Results 1 to 5 of 5
  1. #1
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    Update query help

    I am trying to update counts in a table. But I can not get the update to run. Attached is a snapshot. Thx for any help. Russ

    code -
    UPDATE [WeekBill Of Draft Billing query-cnt-families-per-agency2] INNER JOIN [Report-Family-Cnt] ON [WeekBill Of Draft Billing query-cnt-families-per-agency2].Address = [Report-Family-Cnt].Agency SET [Report-Family-Cnt].FamilyCount = [WeekBill Of Draft Billing query-cnt-families-per-agency2.CountOfFAMILY NUMBER-CR]
    WHERE ((([Report-Family-Cnt].Agency)=[WeekBill Of Draft Billing query-cnt-families-per-agency2.Address]));

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    What is the problem - why won't it run, any errors??

  3. #3
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    error message: "Operation must use updateable query".

    I have updated the names. To make more sense.

    The update query is still failing with the error message: "Operation must use updateable query".

    The query that calculates the numbers that goes into the update query runs good.

    I have attached a new snapshot.

    Russ at Scaninc.org

  4. #4
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Are the 2 queries that are linked updateable? (to check, open them and make sure the new record icon is not greyed out on the record selectors)
    If not then that's why your update query won't run.

  5. #5
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151
    I created a separte new table from the query then bring that it.
    It overlays table on a re-run of the query.
    GREAT advice - I am working without a manual intervention. I build the counts into a table. Thx.
    SELECT WeekBillDraftCntFamiliesPart2Qry.Agency, WeekBillDraftCntFamiliesPart2Qry.FamilyCntNumber INTO weekbillfamilycnts
    FROM WeekBillDraftCntFamiliesPart2Qry;

    weekbillfamilycnts
    is the table.

    Thx for your
    Help
    Russ

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

Similar Threads

  1. Update Query
    By Najeeb in forum Queries
    Replies: 1
    Last Post: 11-19-2015, 04:02 AM
  2. Update Query- selective update?
    By stephenaa5 in forum Queries
    Replies: 1
    Last Post: 10-29-2009, 11:15 AM
  3. Update query help!!!
    By GUMUBIBI in forum Queries
    Replies: 4
    Last Post: 09-07-2009, 09:09 AM
  4. Help with update query
    By weirdg in forum Queries
    Replies: 0
    Last Post: 09-03-2009, 04:21 AM
  5. Update Query
    By GrnISSO in forum Queries
    Replies: 0
    Last Post: 06-15-2007, 05:41 PM

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