Syncronised Combo boxes

C

CRO

Anyone got any coding to help with the above. I want to
be able to select a subject the choose from the three
modules asociated with that subject.

Have set up two tables and linked them as follows
Sub_ID Mod_ID
Name Name
Sub_ID

Made a query for subjext fields (no criteria) and another
for Module ( sub_ID has criteria [Form]![Frmselector]
[qrysubselect]

Set up form called Frmselector and created two unbound
combo boxes.

The subject combo code as follows

Private sub.cbosubselect_afterupdate
Me!cbomodselect.requery
Me!cbomodselect.setfocus
end sub

The module combo as follows

Private Sub Form_current
Me!cbomodselect.requery
End sub

However this doesn't work and I don't know why.

Any help appreciated
 
J

James Goodman

[Form]![Frmselector]![qrysubselect]

Should be:
[Form]![Frmselector]![cbosubselect]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top