Code to invoke nav buttons

  • Thread starter Thread starter jody
  • Start date Start date
J

jody

Hi,

Does anyone know the code that will programatically
simululate using the left navigation button of a form once
followed by using the right navigation button of that form
once??

I'd like to employ this immediately after a new
record is inserted (through a form via a query). I know
this may seem unconventional, but I feel it will work.

Any help is appreciated.

Cheers,
Jody
 
Well, that seems like a strange request?

Lets hope you are not writing bank teller software. Having to go to a
previous client's reocrd to save is not good!

It seems to me that you have some code, or are doing something that requites
the current record to be written to disk. Most certainly moving back a
record, and then forward will accomplish this, but that is a terrible
solution.

If you need to write the current record to disk for some code, or some task
to occur (such as printing a letter, or running a report), then simply write
the current record to disk.

In your code, simply place:

me.Refresh

Using the above before any other code eliminate the need to do the weird
"move back" and then move forward trick.
 
Back
Top