Results 1 to 9 of 9
  1. #1
    theresa's Avatar
    theresa is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20

    Comboboxes not allowing selection on forms, record source from more that 1 table/quer


    Hi, I have been trying to get two combo boxes that will allow users to enter information into the database, store the information, view it and edit it. They work on the table but will not allow edits in the forms. I've tried everything I can think off and some that were on other posts but nothing has worked. It made it worse so I'm back to an earlier version. I think it has something to do with the record source being from more that one table/query as the one form that is working is based on only one table. Can anyone help. I'm unable to upload the database as even zipped it's too big

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    A form can enter/edit data to only one table.

    Possibly you need a form/subform arrangement.

    Did you run Compact & Repair on the db before zipping?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    theresa's Avatar
    theresa is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20
    yes but it's still 6,858kb after both. I've been trying form/subform but they're connected through a join table so that's not working out

    Here's an image of the table relationships
    Click image for larger version. 

Name:	Counsellingrelationship.jpg 
Views:	15 
Size:	123.3 KB 
ID:	15993

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    This isn't the issue you indicated resolved in https://www.accessforums.net/forms/f...add-42721.html ?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    theresa's Avatar
    theresa is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20
    Thanks for getting back so quickly June7. no that thread was to make it easier to fill in a form by selecting from a dropdown list of clients on waiting list, this is when I want to edit client details once the client has entered into counselling. To do this I need to combine information from the client and counselling tables on to one form e.g. to see all the information on a client and select the finishedcounselling yes/no box if they have finished their counselling at the centre. The referral issues and times available can also change during Counselling so I need these to be editable. The combo boxes that I have on the client table will not allow and changes. Another issue I having is when the form is based on a query of the clients table e.g. to show only the current clients, I am unable to use those combo boxes, I would have to go through all the clients the service ever had on a form based on the tblClients. I'm thinking along the lines of a filter but the conditions of the filter would also be based on another table namely the tblcounselling so I don't know if that'll work, any ideas would be helpful

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    And why doesn't form/subform work?

    Main form bound to tblClients and subform bound to tblCounselling. Only that client's counseling records will display in the subform.

    Can use the intrinsic Access filter tools (right click in any field) or use UNBOUND controls to enter/select criteria along with code (VBA or macro) for filtering records. Filter the main form for the desired client.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    theresa's Avatar
    theresa is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20
    Thanks so much June7, My brain has officially stopped working (2hrs sleep last night). I'm gonna hit the sack and try those tomorrow, I'll let you know how I get on

  8. #8
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by theresa View Post

    ...I have been trying to get two combo boxes that will allow users to enter information into the database...They work on the table but will not allow edits in the forms...
    This sounds as if you're using Lookup Fields at the Table-level, which is not a good idea:

    http://www.mvps.org/access/lookupfields.htm

    Are these Lookup Fields in the Table?

    Also, as you've found out, a Form bound to a multi-table Query is usually Read-Only/No Editing Allowed, and the Access gnomes consider the use of a Combobox to be editing, hence their not working on this Form.

    Linq ;0)>

  9. #9
    theresa's Avatar
    theresa is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20
    You're correct Missinglinq, I've lookupfields in my TblClients for both the presentingIssues and Days/Times Available fields.

    Thanks again June7. I used your suggestion, I have the form set up with a subform and placed an unbound combo box on main form to search records on form through the wizard and then changed the row source to SELECT [qryCurrentClients].[ClientRefID] FROM qryCurrentClients; instead of SELECT [TblClients].[ClientRefID] FROM TblClients;

    This works perfectly. I would prefer to use a textbox where the user could enter the ClientRefID directly instead of looking through what could be a long list in a combo box but after 12hrs of research, I've been unable to find a way to do that without the form loosing it's data entry capabilities
    Last edited by theresa; 04-01-2014 at 05:06 PM.

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

Similar Threads

  1. Combo Box not allowing selection
    By libraccess in forum Forms
    Replies: 2
    Last Post: 02-03-2013, 01:48 AM
  2. Replies: 3
    Last Post: 01-24-2013, 02:38 PM
  3. Replies: 7
    Last Post: 03-22-2011, 10:36 AM
  4. Replies: 13
    Last Post: 11-25-2009, 03:10 PM
  5. Forms' Record Source
    By Progress2007 in forum Programming
    Replies: 11
    Last Post: 07-27-2009, 11:04 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