Results 1 to 3 of 3
  1. #1
    Carbontrader is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    12

    Updating a table through a select query: text fields update, but not yes/no fields

    I know this is a fundamental question, but I'm stuck.

    tblStaff has normal personal information about project staff, including several Yes/No fields. My data entry form has the following query as its data source:

    SELECT tblStaff.*, tblStaff.LastName
    FROM tblStaff


    ORDER BY tblStaff.LastName;

    I can update any of the text or numeric fields via the form, but not the Yes/No fields that are displayed as check boxes or option buttons. What am I doing wrong?

  2. #2
    Carbontrader is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    12
    Solved: the Check Box control had been set to Triple State. Removing that solves the problem, but I'm not completely sure why.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    When you deselected the checkbox was it blue or white? Blue is neither yes or no (may be null, but I've never tested that) and to edit such a field requires it to be either y or n. It can't be neither (blue) once it has been one or the other. By removing the triple state option, you've forced it to be one or the other. That's the only thing I can think of, but I don't use them too much so maybe someone will correct me.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 6
    Last Post: 08-22-2013, 08:47 PM
  2. Replies: 3
    Last Post: 01-29-2013, 08:59 AM
  3. Replies: 3
    Last Post: 11-12-2012, 10:44 AM
  4. Replies: 1
    Last Post: 08-30-2011, 07:35 AM
  5. Replies: 5
    Last Post: 03-20-2010, 08:30 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