То есть, к примеру, таблица Студент-Стипендия.
Как сделать так, чтобы в столбец Стипендия можно было вводить только числа.
Есть такая функция:
- Код: Выделить всё
Private Sub object_KeyPress( [ index As Integer,] keyascii As Integer)
The KeyPress event syntax has these parts:
Part Description
object An object expression that evaluates to an object in the Applies To list.
index An integer that uniquely identifies a control if it's in a control array.
keycode An integer that represents the key code.
keyascii An integer that returns a standard numeric ANSI keycode. keyascii is passed by reference; changing it sends a different character to the object.
Changing keyascii to 0 cancels the keystroke so the object receives no character.
Но как ее привязать к конкретному столбцу? [/code]