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
Adding a second Storage Group to Exchange 2000
vlookup between workbooks - one cell
Using Modern Mobile Technologies on Oldish Access 2000 Database
SBS2008 - DCOM was unable to communicate with the computer <computer name> using any of the configured protocols.
5.7.1 Recipient address rejected Access denied, after user name change due to marriage
Managed Folder Policies and Managed Folder Assistant
Reset Autonumbers when moving to production
How to reference the "checked" value of a checkbox in a GridView template field
2 questions about messagequeue
call / run / execute a javascript function on a html webpage with an vb 6 activeX on the same page