Mitsules, Mark S. (Newport News)
Mark.Mitsules at ngc.com
Thu Aug 12 10:54:20 CDT 2004
After setting KeyPreview to True for the form, I think you want to look at
the KeyPress event for the control.
Mark
-----Original Message-----
From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk]
Sent: Thursday, August 12, 2004 11:36 AM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Instant If Then Else
Can I make these changes the instant the User enters a text box, please?
If Not IsNull([txtFun]) Then
Me.txtFun.BackColor = vbRed
Me.txtFun.ForeColor = vbYellow
Else
Me.txtFun.BackColor = vbWhite
Me.txtFun.ForeColor = vbBlack
End If
I mean as he types "y" for "yes", or anything at all? The above doesn't work
till the record changes.
Cheers paul
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com