Results 1 to 3 of 3
  1. #1
    Jamesy_007 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Location
    Caribbean
    Posts
    109

    ListBox of two Forms base on the same Table/Rowsource


    Yes! Guys as the titled thread suggest....

    So i have two(2) Forms base on the same data or table but instead on any programming i just did a little tweak of the sql code that is in the rowsource. i want to separate two(2) groups of people promoted and those not by a checkbox Yes or No field.. here's the problem those not promoted "false" there's a list box with a set of values only for that form.... but those that are promoted there's another different list of values for them of which the user can pick...e.g. so if your promoted only these values can be picked... here is the problem every time i change values of the list box in one form the values change in the other... believe I can solve this but decided to post since i haven't chat with you'll in a while. how to go about this? do i jus create a table with those promoted values and link that table to the form as a combo box...

    Hope you'll understand.... two form objects with a slight filt those who are promoted oppose to those not...
    if promoted these values alone available in the list box...say "frmEntitiled"
    if not promoted these values alone available in this list box...say "frmNotEntitiled"


    ps.. and nope its not a cascading combo box problem!... lol

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you need 2 queries,
    lstbox1 would use 1
    listbox2 would use the other

  3. #3
    Jamesy_007 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Location
    Caribbean
    Posts
    109
    Quote Originally Posted by ranman256 View Post
    you need 2 queries,
    lstbox1 would use 1
    listbox2 would use the other
    Great! works like i want too. know there're different ways to get something done; didn't think i will have to do two (2) queries... make a table of values.... query and so...but this works on both Forms have the correct information now per List on both Forms. One thing don't know why I choose a list box but those values can never change... the font is in red and the default value when highlighted has a black default shade on it can this be adjusted in the properties or best option is to change the font fore color values within the Listbox

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

Similar Threads

  1. Search within access listbox rowsource
    By bubai in forum Access
    Replies: 13
    Last Post: 01-24-2022, 06:14 AM
  2. Replies: 2
    Last Post: 11-01-2018, 07:31 AM
  3. Reversing rowsource order for a multicolumn listbox
    By wackywoo105 in forum Programming
    Replies: 6
    Last Post: 12-10-2014, 06:26 AM
  4. Updating listbox rowsource not working
    By j2curtis64 in forum Forms
    Replies: 13
    Last Post: 12-07-2011, 01:46 PM
  5. ListBox RowSource Update Not working in 2003
    By Access0307 in forum Programming
    Replies: 1
    Last Post: 05-05-2011, 07:41 PM

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