Hi,
In Access 2000, running on Windows 2K, the following code in the BeforeUpdate field of a combo box prevents the update when the condition is met and then restores the original value in the box ...
If Not IsNull(Me.cboProduct.OldValue) Then
strMsg = "SORRY - THAT'S NOT ALLOWED!"
MsgBox strMsg
Cancel = True
SendKeys "{ESC}"
Exit Sub
End If
In Access 2002, running on Windows XP, the SendKeys statement does not function. Database is identical on each machine.
Anybody have any insight into this?
Thanks!
Joe
In Access 2000, running on Windows 2K, the following code in the BeforeUpdate field of a combo box prevents the update when the condition is met and then restores the original value in the box ...
If Not IsNull(Me.cboProduct.OldValue) Then
strMsg = "SORRY - THAT'S NOT ALLOWED!"
MsgBox strMsg
Cancel = True
SendKeys "{ESC}"
Exit Sub
End If
In Access 2002, running on Windows XP, the SendKeys statement does not function. Database is identical on each machine.
Anybody have any insight into this?
Thanks!
Joe