i have this little code snippet that is not working properly.
If the doc.created <= 21/05/2007 then d = workspace.DialogBox( “OldDetails”, True, True, False, True, False, False, “Old Booking Details”)
But its just ignoring it… and processing all recodes regardless of creation date.
Is my syntax correct ??
Msgbox doc.Created
If doc.Status(0) = "New" Then
d = workspace.DialogBox( "NewDetails", True, True, False, True, False, False, "New Booking Details")
Elseif doc.Created <= "[21/05/2007]" Then
d = workspace.DialogBox( "OldDetails", True, True, False, True, False, False, "Old Booking Details")
Else
d = workspace.DialogBox( "NewDetails", True, True, False, True, False, False, "New Booking Details")
End If