Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

20 combo box with one table

Status
Not open for further replies.

compaq2003

Technical User
Jan 5, 2003
7
0
0
US
hi
iam using Access 2002
i am using one table and 20 combo box using same table
what i want,, when i use one name from the table in one combo box the selected name must be removed from the other combo box autmoticaly

thank you
 
Hi :)

Use this code on After Update event of ur comobo box

Me.ComboBox2.RowSource="Table/Query"
Me.ComboBox2.RowSource="Select MyField From MyTable Where MyField Not Like '" & Forms!MyForm!ComboBox1 & "';"
Me.ComboBox2.Requery

Note : I am assuming that ur combo box has got Text type data in it

Cheers!
ÙÇãá
 
thank you
i am new on Access
can you explain to me how to put the codes on details
thank you again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top