Results 1 to 4 of 4
  1. #1
    Jerry8989 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    27

    Question I can't enter text in a bound text box

    I have a form with many bound text fields. For this form I started with 1 table but now I have to left join to a different table to check if there are any rows. After I added this second table I can't edit my text fields.



    This is an example of what i'm doing

    Select a.*, IIf(Len(b.id) Is Null,No,Yes) AS chk
    FROM a LEFT JOIN [select distinct id, AmId from notes]. AS b ON (a.AmId = b.AmId) AND (a.id = b.id)

    Did adding that check some how stop me for editing my fields that go with table a? I need to check if there is a row in table notes if there is i'm binding it to a checkbox so the user knows there is notes or not.

    This is an emergency so any help would be greatly appreciated.

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    It may be because the way you have contructed the query makes it an uneditable query. Suggest you try and open the underlying query as a query and try to edit a field. You should get a statub bar message stating that this record is not updatable.

    David

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I find this link helps me sort out why a query is not updateable.

  4. #4
    Jerry8989 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    27
    Thanks to both of you for your help.
    It is the distinct that is causing the problem. What would be the best approach to create the type of flag I'm trying to create? I just want to let the user know if there are notes by having my checkbox have a check mark in it. The checkbox can't be changed or updated it's just a display feature. The notes table can have multiple rows per id that is why I was doing a distinct. Do I even need the distinct?

    Thanks again

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

Similar Threads

  1. How to vertically align text inside a text box ?
    By alexcalgary in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 08:44 AM
  2. Write text to text box on a form
    By DKY in forum Programming
    Replies: 0
    Last Post: 10-08-2008, 11:34 AM
  3. joining text in text boxes
    By jjwilliams73 in forum Forms
    Replies: 1
    Last Post: 08-26-2008, 02:30 PM
  4. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM
  5. Unbound text box truncating text
    By gddrew in forum Forms
    Replies: 0
    Last Post: 03-02-2006, 11:26 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