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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Swipe Program 1

Status
Not open for further replies.

rweir

MIS
Jul 9, 2001
26
US
I have a program that reads data from an associate's employee card, looks his/her employee number in a database, and marks a field in the database to indicate the employee was present (used for mandatory meetings, etc). My problem is that I haven't been able to figure out how to keep the operators from having to hit enter after they swipe the card. Anyone know how to do this? (new to VB)

The swipe sends an <enter> key to the text box after reading, so I need to know how to check for the enter key and begin processing the employee number...
 
In the keypress event of the text box check for 'Enter' which has a value of 13 and call the procedure which handles the process
Private Sub Text1_KeyPress (KeyAscii As Integer)
If KeyAscii = 13 Then
CheckEmployee
Endif
End Sub

let me know this helps u or not

 
It worked great. Thanks so much for your help pmanivas!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top