Requery not working

T

topdog

Hi, I'm trying to requery a combo box using the On Enter event. It
used to work fine in my other projects. The combo box is on a
subform. I used to simply put controlname.requery in the On Enter
event but it's not working. I have even tried
Forms!MyMainForm!MySubForm.Form![MyControlName].Requery

Any ideas what I'm missing?
THanks
 
C

Chaplain Doug

Did you "cut and paste" or "copy and paste" this combo
control from another form? I have had this happen when I
did that and found the only way to remedy the problem is
to rebuild the combo control using the combo wizard.
 
G

Guest

Hello,

When you copy a control. I believe you need to copy the code as a separate
action. the code doesn't automatically come with the control.



Chaplain Doug said:
Did you "cut and paste" or "copy and paste" this combo
control from another form? I have had this happen when I
did that and found the only way to remedy the problem is
to rebuild the combo control using the combo wizard.
-----Original Message-----
Hi, I'm trying to requery a combo box using the On Enter event. It
used to work fine in my other projects. The combo box is on a
subform. I used to simply put controlname.requery in the On Enter
event but it's not working. I have even tried
Forms!MyMainForm!MySubForm.Form![MyControlName].Requery

Any ideas what I'm missing?
THanks
.
 

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

Similar Threads

problems with 'cbo's and requery 2
Requery Combo box in popup form 2
REQUERY SUBFORM 4
Referencing a subform 4
Requery combo box 1
Requery after add 15
Remain on current record after requery 1
Requery Subforms 1

Top