new records not appearing in form - they used to under Access 2

  • Thread starter phil cunningham
  • Start date
P

phil cunningham

here is my problem

I have a Form that is based on table BOM
In the form I have a button when I press the button I execute the code

....
set mytable = myDb.opentable("BOM")

mytable.Addnew
mytable("Contract name")="Hello world"
mytable.update
mytable.close
DBEngine.idle dbRefreshCache
....

when running this under Access 2 the new record appeared imediately in the
form. But now under Access 97 it does not.
If I open the table BOM the new record is there but it does not appear in
the form.
I can press F9 but they still dont appear
But if I click one of the Sort buttons in the Access toolbar then the new
record appears.
It also appears if I close the form and re-open it

It looks as though Access is not requerying the form even though the table
contents have changed.

Any help will be much appreciated
Phil
 

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