[AccessD] Clear Keyboard Buffer

jack drawbridge jackandpat.d at gmail.com
Tue May 11 07:01:08 CDT 2021


Rocky,
Here is an old thread that mentions clearing the keyboard buffer
<https://www.mrexcel.com/board/threads/flushing-the-keyboard-buffer.254206/>.
Know nothing other than I found it with Google. Hope it's helpful.

On Mon, May 10, 2021 at 6:33 PM Rocky Smolin <rockysmolin2 at gmail.com> wrote:

> Dear List(s):
>
> I have a form with a subform and I have two command buttons that do Next
> Record and Previous Record.  No problem.
>
> Until someone tries to hit the Next Record or Previous Record real fast and
> then I get an error about the subform not existing.
>
> It's a timing thing I'm sure. Might be the keyboard buffer overflowing. And
> I'm thinking that one way to get around the problem (assuming there isn't a
> right way to do this) is to clear the keyboard buffer on entering the
> Current event where this is happening.
>
> But I can't find anything through Google about clearing the keyboard buffer
> in VBA (2010).
>
> Is there a simple way to do this?
>
> MMTIA
>
> Rocky
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>


More information about the AccessD mailing list