requery combox after saving a record

  • Thread starter szag via AccessMonster.com
  • Start date
S

szag via AccessMonster.com

This should be easy but I don't know what I am doing wrong:

I have a combobox "cboxDate". On click I want it to save the current record,
then update the combox's underlying query (so it incorporates any new
selections from the "Date" field on the form). The "date" field on the form
should then be incorporated into the combox's selections. I can't get this to
work - It just keeps the old choices. If I close out of the form then come
back in obviously it is updated like it should be.

My code for On Click:
DoCmd.RunCommand acCmdSaveRecord
Me.cboxDate.Requery
 
S

szag via AccessMonster.com

answered my own question - OnGotFocus was the event to use - OnClick must be
too late...
 

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