Results 1 to 3 of 3
  1. #1
    scoe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    91

    Update query for checkboxes

    Hi, I hope someone can help as I am completely stumped here.
    I have a temporary table that shows ID and relevant checkboxes (yes/no), checked and unchecked over a number of columns which corresponed to a main table in my database..... I am trying to update the checkboxes in the main table from the temporary table. I have checked the formating on both tables and the are the same but I cannot get the update query to work, it just checks everything....



    The sql is as follows:
    [UPDATE [Attendance BursHome] RIGHT JOIN [Att BursHomeRpt Temp] ON [Attendance BursHome].student_id = [Att BursHomeRpt Temp].student_id SET [Attendance BursHome].[7Paid] = [Att BursHomeRpt Temp].[7Paid], [Attendance BursHome].[8Paid] = [Att BursHomeRpt Temp].[7Paid], [Attendance BursHome].[9Paid] = [Att BursHomeRpt Temp].[7Paid], [Attendance BursHome].[10Paid] = [Att BursHomeRpt Temp].[7Paid];]

    Any ideas would be much appreciated.

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    It looks like you missing a where clause.

    You say you have a checkboxes (yes/no).

    UPDATE ...
    .
    .
    WHERE CHECKBOXES = Yes;

  3. #3
    scoe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    91
    Thank you so much, I had put the where clause in as yes but must have put it in wrong as it didn't work..... Just done it again in sql view and it's work.

    Big big thank you

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

Similar Threads

  1. Replies: 13
    Last Post: 07-03-2013, 03:08 PM
  2. Replies: 1
    Last Post: 06-03-2013, 08:57 AM
  3. Filter Query based upon Checkboxes
    By olinms01 in forum Queries
    Replies: 2
    Last Post: 01-21-2013, 11:38 AM
  4. Replies: 3
    Last Post: 11-07-2012, 08:44 PM
  5. Issue with Counts of Checkboxes in Query
    By JamiB1979 in forum Queries
    Replies: 3
    Last Post: 06-29-2011, 02:41 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