Results 1 to 4 of 4
  1. #1
    sdave is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Location
    NC
    Posts
    2

    Select query that updates?

    Hi,


    I have a simple select query with the parameters controlled by a form combo box. The form and query function correctly, but when the query is run (through the form or independently) it updates/changes one record from the table.

    The field that is updated is the query parameter field. For example if I query all the records from a city field (Atlanta) I will get all the correct records, but when I go back to my table, one record will now be Atlanta when before it was something else.

    Hopefully that description was adequate. The SQL is posted below. I appreciate any help with this problem.

    SELECT [Site Tracking Schedule].MSA, [Site Tracking Schedule].Site, [Site Tracking Schedule].Priority, [Site Tracking Schedule].City, [Site Tracking Schedule].ST, [Site Tracking Schedule].Size
    FROM [Site Tracking Schedule]
    WHERE ((([Site Tracking Schedule].MSA)=[Forms]![Form]![Combo2]))
    ORDER BY [Site Tracking Schedule].City;

  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,652
    The query can't be changing anything just by being run. My guess is that the combo box is bound to the data, and shouldn't be.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sdave is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Location
    NC
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    The query can't be changing anything just by being run. My guess is that the combo box is bound to the data, and shouldn't be.

    That was the issue. Thank you very much.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem, and welcome to the site by the way!
    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. Linked Sharepoint Updates
    By Lorlai in forum SharePoint
    Replies: 1
    Last Post: 09-19-2011, 08:07 AM
  2. Need a querie that updates.
    By imlost2 in forum Queries
    Replies: 1
    Last Post: 08-20-2011, 09:06 AM
  3. query updates
    By kwooten in forum Queries
    Replies: 1
    Last Post: 06-14-2011, 11:43 AM
  4. Database Updates
    By avarusbrightfyre in forum Programming
    Replies: 1
    Last Post: 09-15-2010, 02:58 PM
  5. Version Updates
    By avarusbrightfyre in forum Access
    Replies: 1
    Last Post: 09-09-2010, 11:16 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