cascading combo boxes

Forum home » Delegate support and help forum » Microsoft Access Training and help » Cascading Combo boxes

Cascading Combo boxes

resolvedResolved · Medium Priority · Version 2010

Steve has attended:
Access Introduction course
Access Intermediate course

Cascading Combo boxes

Hi,

I recently studied the introduction & intermediate access 2010 course with stl-training.co.uk and at the time it all made sense, however I am trying to put this knowledge into action but am failing somewhere.

What I am trying to achieve is a form whereby there are 2 combo boxes, one that says machinetype, the other that says machinename.

I would like it so that when you select a machinetype, the only machinenames that are available in the second combo box are directly related to the machinetype that was selected on the first combobox. However, I am struggling and cannot get this to work.

I suspect I may be getting the relationship between my two tables wrong but dont know where to start to troubleshoot.

Can someone let me know what I should be checking to try and indentify the problem and its solution.

Thank you.

Steve.

RE: Cascading Combo boxes

Hi Steve,

Thank you your question.

It probaby would be a good idea to check your table relationships.

However you would need to write a VBA procedure to produce your cascading combo boxes.

Here is a link to some help on this matter.

http://www.fontstuff.com/access/acctut10.htm

I hope this helps.

Regards

Simon

RE: Cascading Combo boxes

It definately was a good idea to check the table relationships. I was relating the table to the wrong column.

I think the moral of the story is to test the work you have carried out before moving on!

Thanks Simon. :)



 

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips


Server loaded in 0.08 secs.