combobox selection limited to textbox value

mev2018

New Member
Joined
Jul 5, 2018
Messages
7
Some help needed as I have been racking my brains all day.

I have a Form called: OyCards
I have the following controls on the form:

Textbox called: Team
Textbox called: Card Ref
Textbox called: Oysnum
Combobox called: Colleague

The controls on the form are from the table called: Oycards


The list of names in combobox: Colleague, has rowsource linked to a table called: staff

The table called staff has two columns in order:
teamresponsible
staffname


What I want to do, is for the combobox called Colleague in the form 'OyCards' to list only the names that are linked to the value in the textbox called Team.

i.e. Funding team will list 8 names out of the 100 that are in the table, and so on.

Any help on the code would be appreciated.

I tried using the source row and requery but it doesn't work.

Wayne
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi, you can google for this topic as "MSAccess Cascading Comboboxes" or "MSAccess Dependent Comboboxes" - that should give you some tutorials.

I've followed this one before but others are equally good (strategies vary a little):
https://www.fontstuff.com/access/acctut10.htm
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,614
Messages
6,160,839
Members
451,673
Latest member
wella86

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top