Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    cactuspete13 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2012
    Posts
    53

    When I try to make the ActorID hidden in the drop down (changing the column width on the subform to 0";1";1") the Actor's name vanishes. The name is only present while that row is highlighed, once I put the focus on another row, it becomes invisible.

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    If form is continuous or datasheet, dependent combo or list box won't work nice if it's RowSource is a lookup with alias. The filtered RowSource means not all alias values are available for display in the records. This is a well-known issue with dependent combo and list boxes and not easily dealt with. You can include the lookup table in the form RecordSource (RIGHT JOIN) and bind textbox to the alias field. Set the textbox as Locked Yes and TabStop No.
    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. #18
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Can think of 2 ways :
    1) 1st Option :
    a) In the qryMovAct, add the LastName & FirstName fields to the query.
    b) Add 2 Locked Textboxes to the MovieActorSubform using LastName & FirstName fields from the query qryMovAct as ControlSource. Make these textboxes locked.
    c) See what happens when you open the main form MovieList

    2) 2nd Option :
    Have 2 subforms connected to the Main form MovieList.
    The 1st subform will display the current actors listed against the selected Movie & is ReadOnly.
    The 2nd subform is only for the purpose of adding a new Actor record & will show only one blank row for adding a new record. On adding an actor here, the 1st subform will automatically refresh & display the added record.
    The 2 subforms discussed here are nothing but a bit of modified version of our MovieActorSubform subform.

    Thanks

  4. #19
    cactuspete13 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2012
    Posts
    53

    List records not in table with multiple criteria

    I was thinking about doing something similar: using one sub form with add new records turned off that only shows matching actors, with another sub form that's only purpose is to list actors not selected for that movie and use an append query to add the actor. Thanks for your help

  5. #20
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Quote Originally Posted by cactuspete13 View Post
    I was thinking about doing something similar: using one sub form with add new records turned off that only shows matching actors, with another sub form that's only purpose is to list actors not selected for that movie and use an append query to add the actor. Thanks for your help
    There is no need to create any additional query.
    You can work with a slightly modified version of the SubForm which we already have, for adding records & a slightly modified version of the SubForm for listing the Actors. Check the attached version & see if it gives you some guidelines. Be sure to check the event OnUpdate for the 2nd SubForm field MovieID in the CodeBuilder & also the Form Properties.


    Thanks
    Attached Files Attached Files

  6. #21
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Attaching the 1st option version for an alternative. See how it goes. ( Personally, I prefer the 2nd option of 2 subforms ).

    Thanks
    Attached Files Attached Files

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 05-13-2014, 08:22 AM
  2. Replies: 4
    Last Post: 12-18-2013, 04:08 PM
  3. Replies: 7
    Last Post: 07-11-2013, 10:05 AM
  4. Replies: 5
    Last Post: 01-24-2012, 06:19 PM
  5. list box with multiple criteria
    By white_flag in forum Access
    Replies: 6
    Last Post: 07-25-2011, 11:25 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