M
Maarkr
I always get the crazy requests... they want to add a record, show the record
as a field on the screen, then be able to move it around, so first things
first...
Trying to move a field using the arrow keys:
Private Sub Text87_KeyPress(KeyAscii As Integer)
'Debug.Print KeyAscii
If KeyAscii = vbKeyRight Then
Me.Text87.Left = Me.Text87.Left + 500
Repaint
ElseIf KeyAscii = vbKeyLeft Then
Me.Text87.Left = Me.Text87.Left - 500
Repaint
End If
End Sub
as a field on the screen, then be able to move it around, so first things
first...
Trying to move a field using the arrow keys:
Private Sub Text87_KeyPress(KeyAscii As Integer)
'Debug.Print KeyAscii
If KeyAscii = vbKeyRight Then
Me.Text87.Left = Me.Text87.Left + 500
Repaint
ElseIf KeyAscii = vbKeyLeft Then
Me.Text87.Left = Me.Text87.Left - 500
Repaint
End If
End Sub