Results 1 to 4 of 4
  1. #1
    djfuego is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Location
    UK
    Posts
    13

    Combobox row to equal another combo box row

    Hi Again.



    I have 2 comboboxes each with value lists. I want combobox 2 to equal the same selected row as combo box 1 I have managed to code some VB script to select combobox 2 but need to select the same row that combobox 1 is set to.
    It's not pulling the data from combobox 1 just what row is selected.


    Something like this but line 2 won't work
    Forms!MainInput!Comboan2.SetFocus
    Forms!MainInput!Comboan2.RowSelect = Comboan1.ListIndex

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Try just the last line, but use the Value property of both.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    djfuego is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Location
    UK
    Posts
    13

    Nope.

    Quote Originally Posted by pbaldy View Post
    Try just the last line, but use the Value property of both.
    OK so the line now reads
    Forms!MainInput!Comboan2.Value = Comboan1.Value


    No that just copies the same info from one box to the other. I want to pick the same line in combo box 2 that combo box 1 is set to but display the data for combo box 2 which is different from combo box 1.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Sorry, I don't really understand what you're saying.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Access Form
    By triger1031 in forum Access
    Replies: 3
    Last Post: 07-02-2012, 07:57 AM
  2. Greater than or equal to date
    By stryder09 in forum Access
    Replies: 1
    Last Post: 04-14-2011, 03:54 PM
  3. Subform Combobox based on Main form combo box
    By accessmom in forum Forms
    Replies: 5
    Last Post: 02-21-2011, 07:02 AM
  4. How to make my query not equal to...
    By katrinanyc926 in forum Queries
    Replies: 3
    Last Post: 12-08-2010, 11:27 AM
  5. Set Numbers equal to each other
    By ygu3 in forum Access
    Replies: 1
    Last Post: 07-16-2009, 07:34 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