albert albert

albert albert

  • NA
  • 524
  • 0

Date Value

Apr 7 2014 2:41 AM
Hi everybody,
 
I have this:
 
[code]
 
If IsDate(datMachineInstallationDate.Value) AndAlso IsDate(datMachineInstallationEndDate.Value) Then
If datMachineInstallationDate.Value > datMachineInstallationEndDate.Value Then
.Message = getText(wForm, "VB_EINDDATUMFOUT", "De einddatum van de installatie moet groter zijn dan de installatiedatum.", Me.Page.ToString)
.SetFocus = "datMachineInstallationEndDate"
End If
End If
[/code] 
 
But if there is only one datefield filled in then also the message:  .Message = getText(wForm, "VB_EINDDATUMFOUT", "De einddatum van de installatie moet groter zijn dan de installatiedatum.", Me.Page.ToString)
 
is showing. But Only if both dates are filled in then the message has to be shown. 
 
Thank you.
 
Niels 

Answers (4)