Results 1 to 5 of 5
  1. #1
    sdrmason is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    6

    Lightbulb Running Update Query On Selected Items Only

    Hello,
    I have a problem and I am not returning much luck via google. Here goes...
    I have a continuous form, which is based on a query, it displays a set of records, I then need to be able to tick a box on certain records and "mass update" the 'Costing Status' Columns of those selected values.


    As this database will be used by multiple users at once the checkboxes cannot be bound to the record as this would be a problem with multi users. (Originally I put an extra field in my main table called "selected" and set the buttons to run an update query based on that, I didn't think about the impact of two users in the system).


    Another theory was a list box however this presents a "presentation" issue as often our field names are longer than the columns and need to be wrapped over two lines.


    I need to somehow tell an update query to run on a select few records.


    I have tried to attach a photo however I have had to blackout some details also at http://tinypic.com/r/km1yh/8

    Click image for larger version. 

Name:	AccessProblem.jpg 
Views:	8 
Size:	139.7 KB 
ID:	18080




    Any ideas would be greatly appreciated!


    Cheers,
    Steve

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    One alternative would be to copy the desired records into a front end table that also had the extra field, and base the form on that. Then your update could be run against the actual table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    The checkbox MUST be bound to the record to order to indicate what to change.
    You could extract to a local table THEN run the update.

  4. #4
    sdrmason is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    6
    I loosely follow you, it must be said I am probably advanced yet nowhere near expert! Could you dump this down a little, how do extract the data into the local table? I assume this table is a virtual table held by one user on their PC as such?

    Thanks for your help, been at this for days now, I thought it would be a fairly common procedure!

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Typically I'd probably use a listbox. Presuming your application is split (and it should be), you'd have a table in the front end that you empty/populate when needed for this form. Simplest way to populate is probably an append query. Since it's in the front end, each user would be independent of each other.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query/Update what I selected
    By vtaurusv in forum Queries
    Replies: 10
    Last Post: 06-27-2013, 07:41 PM
  2. Replies: 3
    Last Post: 03-12-2013, 01:38 PM
  3. Replies: 3
    Last Post: 10-23-2012, 03:32 PM
  4. List Box Items Are De-Selected On A Screen Refresh
    By plengeb in forum Programming
    Replies: 2
    Last Post: 10-03-2012, 11:58 AM
  5. Selected items in listbox
    By tomodachi in forum Access
    Replies: 1
    Last Post: 09-09-2010, 01:14 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