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
SQL query
Applying Group Policies at any point of time
Access 2003 SQL Question
binding to a dependency property on a custom control
List out All table and indexes in a particular database
How many servers would I need for 100 concurrent users for terminal services?
All mailboxes in mailbox store in exchange have disapeared
How do I check for a duplicate record?
Script to automatically run the saved imports in an access database
Access Database Will Not Open - Error "Not a Valid Bookmark"