I am not sure why you are doing it, but you might create both, and use the
visible true or false to decide which is displayed. You can put one over the
other. If you had a button you could use the following for the on click event
if btnChange.Caption = "Combo" then
cmbInput.Visible = True
txtInput.Visible = False
btnChange.Caption = "TextBox"
else
cmbInput.Visible = False
txtInput.Visible = True
btnChange.Caption = "Combo"
End If
Simplest solution is to have two controls on top of each other, one
visible and one hidden.
-Tom.
Microsoft Access MVP
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.