From: Abe Katz on 21 May 2010 14:20 My client got a new computer with Windows7. Now I have a problem with the SendKeys in code. I'm using {Esc} to erase if the user enters a wrong entry, and {F9} to refresh the screen when the Runcommand SaveRecord doesn't work. I tried to use undo method instead of the Esc, but it only works in the forms event using me.undo but not when calling a Function. What is the alternative for {Esc} and {F9}? Thanks Abe
From: Douglas J. Steele on 21 May 2010 14:32 What's the actual code in your function? Undo should work instead of Esc (assuming you're undoing the correct object!) Similarly, Requery should work instead of F9. Realistically, SendKeys was seldom (if ever) the correct answer, an issue that's even worse with Win7 -- Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/DJSteele (no e-mails, please!) "Abe Katz" <abekatz(a)mindspring.com> wrote in message news:OE2CDJR%23KHA.980(a)TK2MSFTNGP04.phx.gbl... > My client got a new computer with Windows7. Now I have a problem with the > SendKeys in code. > I'm using {Esc} to erase if the user enters a wrong entry, and {F9} to > refresh the screen when the Runcommand SaveRecord doesn't work. > I tried to use undo method instead of the Esc, but it only works in the > forms event using me.undo but not when calling a Function. > What is the alternative for {Esc} and {F9}? > Thanks > Abe >
|
Pages: 1 Prev: Autoformats Next: trigger an event by changing pages in a tab control form |