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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear text in one combo from procedure in another combo

Status
Not open for further replies.

BarryMurphy

Technical User
May 20, 2001
56
NZ
I have a DAO database in Access 2000 with a form containing two combo boxes. I have code in the AfterUpdate event procedure of one combo box that tests whether, if there is text in the other combo box, it is compatible with the selection just made in the current combo box. If it is not compatible, I want the text to be cleared. How can I do this? If I try to use SetFocus to go into the other combo and clear it, I get "Run-time error '2110' Microsoft Access can't move the focus to the control ComboName."
 
I have the answer now, i.e. ComboName.Value = ""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top