Hi,
The following code is attempting to compare which of the date and time fields is greater.
The Me.txtFlatFileUpdate control gets its value from a function which gets the date/time of a file on the network.
The Me.txtLastUpdateDateTime control gets its value from a field in a table which is a concatenation of two separate date and time fields in the same table.
The comparison does not work. It always says the Me.txtFlatFileUpdate is greater than the Me.txtLastUpdateDateTime
Private Sub Form_Open(Cancel As Integer)
If Me.txtFlatFileUpdate > Me.txtLastUpdateDateTime Then
Call MsgBox("The FlatFile Update is greater than the Last Update")
Else
Call MsgBox("The Last Update is greater than the FlatFile Update")
End If
End Sub
Any ideas?
Thanks!
The following code is attempting to compare which of the date and time fields is greater.
The Me.txtFlatFileUpdate control gets its value from a function which gets the date/time of a file on the network.
The Me.txtLastUpdateDateTime control gets its value from a field in a table which is a concatenation of two separate date and time fields in the same table.
The comparison does not work. It always says the Me.txtFlatFileUpdate is greater than the Me.txtLastUpdateDateTime
Private Sub Form_Open(Cancel As Integer)
If Me.txtFlatFileUpdate > Me.txtLastUpdateDateTime Then
Call MsgBox("The FlatFile Update is greater than the Last Update")
Else
Call MsgBox("The Last Update is greater than the FlatFile Update")
End If
End Sub
Any ideas?
Thanks!