Results 1 to 7 of 7
  1. #1
    FJM is offline Competent Performer
    Windows 98/ME Access 2003
    Join Date
    Jun 2010
    Posts
    117

    Invisible combo box

    I have a form which contains details of a SUPPLIER and on the form it has a standard combo box which is used to select a specific account for the user to view.


    I want to now call up the details of a specific supplier on this form but instead of using the combo box to choose the supplier, I want to use an account number on a completely different form.
    I have created a simple macro and this works.
    I want the original combo box to now become invisible if I choose the supplier using this route.
    Is this possible

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    'open the form
    docmd.openform "frmSupplyDetail"

    'hide the combo
    forms!"frmSupplyDetail!cboBox.visible = false

  3. #3
    FJM is offline Competent Performer
    Windows 98/ME Access 2003
    Join Date
    Jun 2010
    Posts
    117
    I only want the combo box to go visible if the form is opened up via the "second" form i.e where the supplier account matches.
    I want the combo box to remain visible if the user chooses the original form to look at the supplier details.
    At present the supplier form is made up of a list of suppliers.
    The user can go into the form and by using the combo box look at the details of any supplier they choose.
    The "second" form has different details on it about a parts which is linked to specific suppliers.
    When the user has this form open I want them to be able to click on the supplier which will then open up the original form but will be filtered so that the supllier numbers match.
    It is at this point I am wondering if the combo box can go invisible.
    The macro that currently runs will open the form where I want it to

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    FJM,
    Are you saying that only certain users can see certain Accounts/Suppliers?
    If this is correct, then you may need a "UserCanSee" type table where
    user X can see Account 1, 20 ,34
    user Y can see Account 1, 2, 3, 14
    etc.
    Then you control Access via your "controlling table".
    If I have not understood, then please give some more info and example.
    It seems that if the user selected a different entry from thee combo, they could still see the details.

    Good luck with your project.

  5. #5
    FJM is offline Competent Performer
    Windows 98/ME Access 2003
    Join Date
    Jun 2010
    Posts
    117
    I don't want there to be any restriction on users. I only want to know if, in effect the combo box can toggle between visible and invisible depending on which method is used to open the form i.e visible if opened directly and invisible if opened via the second form

  6. #6
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    you can pass info to the form via openargs. Then in the Load event of the form, check what is in openArgs to set the combobox visible or not. There won't be anything in openArgs if opened directly
    DoCmd.OpenForm "frmName", OpenArgs:="Parameter(s)"

    load event of form --------
    value = Me.OpenArgs)

  7. #7
    FJM is offline Competent Performer
    Windows 98/ME Access 2003
    Join Date
    Jun 2010
    Posts
    117
    Not too sure what to do here as my coding skills are less than basic but I have done a work around by simply copying the form and removing the combo box off the copy.
    Thanks for your help anyway

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

Similar Threads

  1. combo box/invisible data/type mismatch
    By stephenaa5 in forum Forms
    Replies: 2
    Last Post: 04-17-2014, 09:48 AM
  2. Invisible Combo box and Check box
    By Amen in forum Access
    Replies: 3
    Last Post: 10-06-2013, 06:54 PM
  3. Replies: 1
    Last Post: 09-30-2013, 05:22 PM
  4. Replies: 11
    Last Post: 06-30-2011, 11:12 PM
  5. Combo Boxes Visible/Invisible
    By Rick West in forum Forms
    Replies: 2
    Last Post: 07-06-2010, 09:41 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