I have a form showing a list of products. There are over 10,000 items, so the user has the ability to add a product type which will filter the list. There is also a text field where the user can start to type an item name and the list will filter on each keystroke to narrow down the list. I am using the following code.
Private Sub txtItem_KeyUp(KeyCode as Integer, Shift as Integer)
Dim lngLength As Long
Dim myKeyCode As Integer
Dim myTest As String
myKeyCode = KeyCode
If myKeyCode <> 9 Then
If myKeyCode <> 8 Then
myText = myText & Chr(myKeyCode)
Me.txtItem = ""
Me.txtItem = myText
Else
lngLength = Len(myText)
myText = Left(myText, lngLength - 1)
Me.txtItem = ""
Me.txtItem = myText
End If
FilterSubfrm
End If
End Sub
MyText then is used with other criteria in the FilterSubfrm sub-routine. The code is in a front-end system attached to a network. The tables are stored in the public folder of one of the networked computers. (There are a total of 5 computers on the network.)
Some of the computers are showing incorrect data - entering a 0 results in an n with a tilde, for example. I can't figure out why it would work on one computer and not another, unless there is something in the individual computer settings regarding language, but I can't find it.
Any suggestions?
Private Sub txtItem_KeyUp(KeyCode as Integer, Shift as Integer)
Dim lngLength As Long
Dim myKeyCode As Integer
Dim myTest As String
myKeyCode = KeyCode
If myKeyCode <> 9 Then
If myKeyCode <> 8 Then
myText = myText & Chr(myKeyCode)
Me.txtItem = ""
Me.txtItem = myText
Else
lngLength = Len(myText)
myText = Left(myText, lngLength - 1)
Me.txtItem = ""
Me.txtItem = myText
End If
FilterSubfrm
End If
End Sub
MyText then is used with other criteria in the FilterSubfrm sub-routine. The code is in a front-end system attached to a network. The tables are stored in the public folder of one of the networked computers. (There are a total of 5 computers on the network.)
Some of the computers are showing incorrect data - entering a 0 results in an n with a tilde, for example. I can't figure out why it would work on one computer and not another, unless there is something in the individual computer settings regarding language, but I can't find it.
Any suggestions?