Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendkeys Statement produces strange results

Status
Not open for further replies.

gd

Programmer
Jan 27, 2000
9
CA
I'm using the following line of code with the desired results hopefully a refresh on whichever form happens to be open:<br><br>SendKeys &quot;{F9}&quot;, False<br><br>Seems to work great however it also toggles the NumLock.<br><br>Anyone have ideas as to why this may be happening?
 
I suspect there is more than just that one line in your code.<br>Also someone else in this forum wants to know to turn ON the Num Lock so your debuggle could help some one else.<br><br>so please paste all of your code here.<br><br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
this is the code where the NumLock is being toggled:<br><br>Private Sub Form_Resize()<br>SendKeys &quot;{F9}&quot;, False<br>End Sub<br><br>Here is the code in the other place where the Sendkeys is being used Here the NumLock Blinks but stays on:<br><br>Private Sub Form_Current()<br><br>If InActive = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;UpdateNum.Visible = True<br>Else<br>&nbsp;&nbsp;&nbsp;&nbsp;UpdateNum.Visible = False<br>End If<br><br>Combo8 = PartNum<br>SendKeys &quot;{F9}&quot;, False<br><br>End Sub<br><br>If I comment out all the SendKeys statements.&nbsp;&nbsp;The problem is solved.&nbsp;&nbsp;Unfortunately this does not get my forms refreshed.<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top