Automatically updating a form while open

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a form that has two tabs on it. One tab shows existing records, the
other tab is to add new records. If I add a record it won't show up on the
other tab unless I close out of the form and then reopen it. I tried to do a
me.form.refresh on the tab, but it didn't work.

Any suggestions on how to do this would be greatly appreciated.
Thanks,
krista
 
Try this:

Add this to the AfterUpdate event for the form:

RunCommand acCmdSaveRecord
Me.Requery


Does that work for you?
 
Better is:
Me.Dirty = False
Me.Requery

Pieter

Tim Johnson said:
Try this:

Add this to the AfterUpdate event for the form:

RunCommand acCmdSaveRecord
Me.Requery


Does that work for you?
 

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

Back
Top