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
Import multiple Excel files into Access
How do I find the length of a string in Points based on a font name and font size.
Activesync 4.5 gives support code 85010014
Could not find linked table, problem when adding tables
last6months access
MS Access invalid date
MS Access 2000 not able to find advapi32.dll file but it is in the windows/system32 file.
IIS Start call function
Internet Explorer 6 starting slow on Windows Server 2000 Terminal Server
visual Basic PowerPacks PrintForm margins