I want to make it so that when the user selects an item in one box, which displays all items in a certain column, the other box would automatically change to another item in a set column on the same row. Any tips on how to do this?
Here is the record source for cbo1: SELECT [Sheet1 Query].[SKU] FROM [Sheet1 Query] GROUP BY [Sheet1 Query].[SKU];
Here is the record source for cbo2: SELECT [Sheet1 Query].[Description], [Sheet1 Query].[SKU] FROM [Sheet1 Query] WHERE ((([Sheet1 Query].[SKU])=[Forms]![frmMyForm]!cbo1));
Requery cbo2 by placing the following in the <AfterUpdate> event of cbo1: Me.cbo2.Requery
Here is the record source for cbo1: SELECT [Sheet1 Query].[SKU] FROM [Sheet1 Query] GROUP BY [Sheet1 Query].[SKU];
Here is the record source for cbo2: SELECT [Sheet1 Query].[Description], [Sheet1 Query].[SKU] FROM [Sheet1 Query] WHERE ((([Sheet1 Query].[SKU])=[Forms]![frmMyForm]!cbo1));
Requery cbo2 by placing the following in the <AfterUpdate> event of cbo1: Me.cbo2.Requery
Well, i will say that I had some luck with it. But i end up with some options in the combo that either shouldn't be there and are, or some options that should be there and arent. So that could just be a problem with my coding. Otherwise it works for me. And if it doesnt work for you PrintNet, i suggest you give us the code for your rowsources, cause that seems like the main problem for me.
no i get the "Microsoft Access cannot find the macro 'Me.'" error. I don't know what is wrong. (other than the fact that it can't find the 'Me' macro )
Are you remembering to type 'Forms!frmMyForm!cbo2.Requery' ? because you didnt type it and i was just checking to see maybe that would make a difference, yet you might already have it typed, but it just didnt find an error with that section of the code. Just checkin!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.