Combo box value depends on the selection of another combo box in Access

แชร์
ฝัง

ความคิดเห็น • 79

  • @alanstevens6913
    @alanstevens6913 8 ปีที่แล้ว +11

    I wish you would have talked about the query that you made ahead of time that was the row source for your second combo box

  • @matthewmcfarland3838
    @matthewmcfarland3838 7 ปีที่แล้ว +1

    This was tricky to figure out. The Microsoft help website talks about "drilling down" through the structure of the database. The tricky part was trying to figure out what table was being referenced in the combo boxes and the relationship between those tables as far as parent and child. The parent, or combo box 1, can have a one-to-many relationship with the child. The structure of the tables is very important in trying to get this to work. Thanks for sharing austin72406. You really get this stuff!

  • @MsrRycerski
    @MsrRycerski 7 ปีที่แล้ว +2

    Austin
    One more time very big thanks for your tutorial - its very useful.

  • @hiraiftikhar6196
    @hiraiftikhar6196 8 ปีที่แล้ว +4

    You videos are great. I have learned alot from them :) thank you for being so helpful

  • @ontracklifetools5189
    @ontracklifetools5189 9 ปีที่แล้ว +2

    Great video. I've ran into a problem though and I've looked at it from every angle and can't seem to figure it out.
    I have 4 levels of cascading combo boxes. When I select a value for the first box, the second box filters the available options perfectly and I'm able to select one just fine. When I get to the next, third combo box however, I immediately get the "This expression is typed incorrectly or it is too complex..." error and there are no values available to select from. Same story for the 4th one.
    The queries for each of the 4 combo boxes reference are virtually exactly equivalent to each other as well as the criteria code. I just can't figure out why the concept works fine for the second box but won't work for the third or fourth when they, again, are virtually exactly the same.
    I have the right VBA to requery the next box as each box is filled, each row source is pointing to the right place, the boxes, queries, and tables are all named and referenced correctly, everything seems to be right, but it won't still work.
    I'm completely stuck. Anyone?

  • @111111ganesh
    @111111ganesh 7 ปีที่แล้ว +2

    I am from rural area but trying to do automate programs through access. And from lot of days I am searching this thing after all at last I got it.

  • @MarcusMcKay
    @MarcusMcKay 5 ปีที่แล้ว +1

    Excellent tutorial!! Thank you!

  • @haninokasha9940
    @haninokasha9940 7 ปีที่แล้ว +4

    Hi ! Any Idea what can I do if I added A third Combo box that depends on the Value of the filtered second combo ?

  • @user-dj5ss3ls8p
    @user-dj5ss3ls8p 4 ปีที่แล้ว +1

    Thanks for your clip, this helps me a lot

  • @michelef.7159
    @michelef.7159 4 ปีที่แล้ว

    Thank you for you explanation, it was really clear!!!. I have only one question, I did it right, But I would like to have the second combo box to become empty if I change the first combo box. In your example it happens, but in mine it doesn't, can you help me?

  • @aakburns
    @aakburns 4 ปีที่แล้ว +1

    Thank you. I’ve been trying to do this for... days. I’ve been doing it backwards.

  • @deweywsu
    @deweywsu 7 ปีที่แล้ว +1

    Thank you so much for posting this. It really helped me out!

  • @jayakumarm1803
    @jayakumarm1803 3 ปีที่แล้ว

    Thank you! That was easy and worked well.

  • @mdhaziq7114
    @mdhaziq7114 6 ปีที่แล้ว

    Hello,
    for the 2nd combo box the query for your example uses [Form]![Customer]![Combo219]
    I couldnt get the drop down when I type it out. When I enter they prompt me that it is invalid.
    Why is that so?

  • @swapnilthakur4888
    @swapnilthakur4888 6 ปีที่แล้ว

    Hi,
    How should we auto populate the all values in diffrent text box depending upon the selection of the one dropdown value??
    Means, Suppose we select the specific value from dropdown and once we select the value from dropdown then text box automatically fetch and fill the data.
    i want this in ADF view criteria

  • @dinacahyaningtyas6224
    @dinacahyaningtyas6224 7 ปีที่แล้ว

    Thank you. Now, I can manipulate my combo box :D

  • @pruthvirajsuryawanshi1377
    @pruthvirajsuryawanshi1377 3 ปีที่แล้ว

    Sirji, you understand the way O really is very good .. It gives us a lot of knowledge…
    Sir, a search box from which we search and create a check box (such as a class) and a check box button can be obtained by clicking on it (such as its Aadhaar number, its mother's name…). ...

  • @zlajatube
    @zlajatube ปีที่แล้ว

    thank you but how to make default value for second combobox and still be able to see whole list depending on first combo...

  • @abdurrehman5038
    @abdurrehman5038 8 ปีที่แล้ว +2

    when i was creating second combo box "Create Box Wizard" at first step "Third Option is missing in my Access 2010 & 2013 too.
    where this line is written "Find a record on my form based on the value I selected in my combo box". ??? so how can resolve it ??? any help ??

    • @austin72406
      @austin72406  8 ปีที่แล้ว

      Need to update the rowsource data on the second combo box. need to link certain field to the first combo box.
      And need to put the code refresh the second combo box after the first combo box selected. It will be under the After Update Event on the first combo box.

  • @mShykot
    @mShykot 6 ปีที่แล้ว

    Is it possible to do such on MS excel useform using vba ?

  • @bks021
    @bks021 10 ปีที่แล้ว +1

    Thank you for this video nice one

  • @GenoveGnecoGross
    @GenoveGnecoGross 9 ปีที่แล้ว +1

    Thx i was looking how to do this.

  • @mifarrag
    @mifarrag 8 ปีที่แล้ว +1

    Hi Sir, How i can change the second combobox to checklist combobox with the same conditions ?
    Thank you

  • @rommandelacruz4667
    @rommandelacruz4667 5 ปีที่แล้ว

    sir is there any solution to avoid error when it put on navigation bar?

  • @msatul1305
    @msatul1305 3 ปีที่แล้ว

    Great Video. Thank you

  • @chhansambath5244
    @chhansambath5244 4 ปีที่แล้ว

    Hi! How could we use 4or5 combobox independence from combobox1to combobox5 and switch from 5 independence to1combobox. I mean can search data like state ,city ,commune to provinces and from provinces .....to state ?

  • @moodkn
    @moodkn 5 ปีที่แล้ว

    Thanks!!!! Easy & Helpful

  • @xiangshuhai
    @xiangshuhai 4 ปีที่แล้ว +1

    Thank you!

  • @walterongwongsakul3804
    @walterongwongsakul3804 9 ปีที่แล้ว

    How do you get the value in Combo Box 2 (Select Customer Name) to reset back to "blank" every time after you update the customer type?
    Thank you for the tutorial ... very easy and powerful....I am working on a task similar to the idea presented here though everything works perfectly fine ONLY the re-query function doesn't reset the value back to "null" but rather keep the previous value which is very confusing to the user if they have to do multiple orders. Thanks in advance!

    • @austin72406
      @austin72406  9 ปีที่แล้ว

      please watch video every step you might missed some part.on the AfterUpdate Event of 1st combo box (Customer Type) need to have code as me.2ndComboboxName.requeryalso on the data/row source of 2nd combo box needs to have the customer type field set the criteria to the 1st combo box.

  • @evatsompou435
    @evatsompou435 7 ปีที่แล้ว

    Hello! I have a combo box for Contracts and another combo box that displays the Supplier based on the selected contract. All these created under the instructions of the video. The problem is that whichever Contract I choose from the first combo box, I always get only one of my two saved suppliers (and that is not the corresponding supplier!). Is there something in the property sheet that needs to be changed?

    • @austin72406
      @austin72406  7 ปีที่แล้ว

      Did you have a code to requery the second combobox on the after update of first combobox?

  • @maneeshmassey
    @maneeshmassey 2 ปีที่แล้ว

    How to hide unhide a subform with combo box selection?

  • @simsimashakil2372
    @simsimashakil2372 8 ปีที่แล้ว +1

    Hi, sir what if i change the value of the first combobox? i want when i do these it also refresh the second combobox and the appear the value related in the first combobox or the combobox is bcanged to empty i don't want the previus value is still shown it the box.
    thank you

    • @austin72406
      @austin72406  8 ปีที่แล้ว

      you will need to edit the row source of second combo box in which the field related to the first combo box.
      also after the select the value on the first combo box you will need to refresh the second combo box on the After Update Event of First combo box.

    • @simsimashakil2372
      @simsimashakil2372 8 ปีที่แล้ว

      Sir how i edit the row source of second combo box with the field related to the first combo box?! Please explain to me because i am new in the access.
      Thank you.

  • @saranyarajappon3588
    @saranyarajappon3588 5 ปีที่แล้ว

    Super Video Thank you...So much...

  • @RaulMontalvo__
    @RaulMontalvo__ 8 ปีที่แล้ว

    Is there anyway I can get your consultation a couple of questions I have? I want to make a combobox that when you select a value (like a state) all the values for that state show up, from a different table that is connect to the one that is the source of the combo box. Any insight?

    • @austin72406
      @austin72406  8 ปีที่แล้ว

      that's simple. search by using combo box here: th-cam.com/video/8N1hRBdsI1s/w-d-xo.html

    • @RaulMontalvo__
      @RaulMontalvo__ 8 ปีที่แล้ว

      I watched the video but your method is not how I need to get the application to operate. I need to be able to use one form to search the state from a combo box, then once that state is searched, clicking on the value in the box then populates a different form by which all of the laws in that state are displayed.

  • @SultanBaloushy
    @SultanBaloushy 7 ปีที่แล้ว

    Dear can I but a condition or a constrain on combo box to show specific rows like upgrading a student degree
    e.g. if he is BA then the only choices are shown MA , PHD, or proff.
    and if he is MA then the only choices are shown PHD, or Proff

    • @austin72406
      @austin72406  7 ปีที่แล้ว

      Yes, you can do it either from VBA code or link to another table from the data source of combo like shown on the video.

  • @abdulhamidalhaddadi2255
    @abdulhamidalhaddadi2255 2 ปีที่แล้ว

    Thank you

  • @anntan3660
    @anntan3660 10 ปีที่แล้ว

    Thanks you for sharing this video. Any idea on getting cascade combo box working in Navigation form? The above works fine when I open the form directly, but falls down when placed in a navigation form. Any help with this would be gratefully received.

    • @austin72406
      @austin72406  10 ปีที่แล้ว

      you will need to update the Row Source of data on the second combo box in the query from [Forms]![Customer]![Combo219] to [Forms]![Navigation Form].[Form]![NavigationSubform]![Combo219]

    • @anntan3660
      @anntan3660 10 ปีที่แล้ว

      austin72406
      Thank you sir. Try to update the Row Source as indicated. But keep getting prompt to Enter Parameter Value, Forms!Navigation Form.Form!NavigationSubform!Combo219. Not sure what I did wrong. Just starting to learn Access and have no programming background.

    • @austin72406
      @austin72406  10 ปีที่แล้ว

      Ann Tan this: [Forms]![Navigation Form].[Form]![NavigationSubform]![Combo219] make sure you have a correct form name and combo box name

    • @anntan3660
      @anntan3660 10 ปีที่แล้ว

      austin72406
      Thank you sir! Have been cracking my head & wonder why it does not work.LOL. Just replace to [Forms]![Master Order].[Form]![NavigationSubform]![Combo219] and yippe it works! As my main form is call Master Order. Thanks again.

    • @anntan3660
      @anntan3660 10 ปีที่แล้ว

      Ann Tan
      Opps...Try to put the same on 2nd tab of main navigation form and it doesn't work. Asked to enter parameter value. It works on 1st tab smoothly.

  • @ranmeet7928
    @ranmeet7928 9 ปีที่แล้ว +1

    In a combo box third option find a selection is nor showing in my ms access

    • @Brahmablu
      @Brahmablu 8 ปีที่แล้ว

      +ran meet mine either. Any update?

  • @ssbdit
    @ssbdit 3 ปีที่แล้ว

    very helpful video

  • @troglodytes4874
    @troglodytes4874 8 ปีที่แล้ว +1

    How would you amend this to get it to work on a subform?

    • @troglodytes4874
      @troglodytes4874 8 ปีที่แล้ว +1

      Actually I've worked it out. Thanks for posting another helpful Access video.

    • @zachary6275
      @zachary6275 8 ปีที่แล้ว +1

      I'm trying to do this right now, any pointers?

  • @davidhewitt6941
    @davidhewitt6941 8 ปีที่แล้ว

    Hi how do you reference a combobox on a navigation form within another navigation form (two tier) thanks

    • @austin72406
      @austin72406  8 ปีที่แล้ว

      it is about referencing to the navigation form.
      it will be like:
      Forms![Navigation Form].Form.[NavigationSubform].Form.combobox

    • @davidhewitt6941
      @davidhewitt6941 8 ปีที่แล้ว

      Thanks Austin, this seems to work for the first form (top tier). However if there is a another navigation form within that form (2nd Tier) it doesn't find it. For example If you have a Navigation form that has a tab called "Search" that opens "FrmSearch" then a navigation form within "FrmSearch" with two tabs "Table View" and "Form View". When individuals click "Form View" it will open a form called "FrmSearchFrm" the query can't find any value on that form.

    • @austin72406
      @austin72406  8 ปีที่แล้ว

      how about:Forms![Navigation Form].Form.[FrmSearch].Form.[NavigationSubform].Form.combobox

  • @krishnagroupgzp2641
    @krishnagroupgzp2641 3 ปีที่แล้ว

    Nice 👍

  • @lakritv2607
    @lakritv2607 3 ปีที่แล้ว

    good explained

  • @moodkn
    @moodkn 5 ปีที่แล้ว

    Good Example

  • @Brahmablu
    @Brahmablu 8 ปีที่แล้ว

    When I click combo box, I don't have the third option. Any suggestions?

    • @austin72406
      @austin72406  8 ปีที่แล้ว

      please explain more in detail for your question.

    • @Brahmablu
      @Brahmablu 8 ปีที่แล้ว

      +austin72406 I dont have the third option "Find a record on my form...." because my Form doesn' thave a Record Source. If I select a Table for Record source, all the other boxes in my Form stop working.

  • @Thonginsure
    @Thonginsure 3 ปีที่แล้ว

    Very Good

  • @zubaidahmdrawi2808
    @zubaidahmdrawi2808 4 ปีที่แล้ว +1

    great job, anyone can help me with this same situation BUT IN WORD PLEASE

  • @kimrowisomabes6533
    @kimrowisomabes6533 5 ปีที่แล้ว

    yeah. the query was not discussed. In the end, this video was a waste of time

  • @submittedbymail
    @submittedbymail 3 ปีที่แล้ว

    You made this hard. There is an easier way.