Microsoft
Software
Hardware
Network
Question : Validate Month & Year Field on Form
On a form, I have a PO Date formatted MM/DD/YYYY; on the same record one must choose a date from a combo box and that date needs to be either in the same MONTH/YEAR as the PO date field or later. How do I write a Validation Rule for this? Thanking you in advance!
Answer : Validate Month & Year Field on Form
I would put something like this in the form's BeforeUpdate event...
If Me!ThatComboBox < DateSerial(Year(Me!PO_Date
), Month(Me!PO_Date), 1) Then
MsgBox "Invalid date", vbCritical, "No soup for you!"
Me.ThatComboBox.SetFocus
Cancel = True
End If
Random Solutions
Macrovision Setup will not run proprly
I have downloaded the zip of windows 7 for 30 days evaluation version. but now i'm trying to write it to a DVD to make it to boot windows 7 to install in my laptop. i copied the files using nero 8.
Access TRIM Field Name
Change backcolor in Access subform in Datasheet view
HTTP_500 Error in SBS 2003 Exchange ActiveSync - FolerSync Step
Excel toolbar
Revoked Certificates publication issue
ASP.NET change input value on button click from code behind
ActiveSync will not provision devices, even when it is configured to allow non provisonable devices
How to distribute the Calendar 11.0 control