cfbeginner
MIS
Hi,
I'm getting Run time error 13: Type mistmatch' on the below code:
If (Me.Date = "") Or IsNull(Me.Date) Then Forms! frmContact!contactdate = Null
Else
Forms!frmContact!contactdate = Format$(DateValue(Me.Date), "yyyy-mm-dd")
End If
My debugger points the problem line is
Forms!frmContact!contactdate = Format$(DateValue(Me.Date), "yyyy-mm-dd")
Also, Me.Date is in the format of '2/29/2006' before I use the Format$ to convert it to "yyyy-mm-dd'
This is a MS Access 2003 application that use SQL server as a backend.
Any help is appreciated!
I'm getting Run time error 13: Type mistmatch' on the below code:
If (Me.Date = "") Or IsNull(Me.Date) Then Forms! frmContact!contactdate = Null
Else
Forms!frmContact!contactdate = Format$(DateValue(Me.Date), "yyyy-mm-dd")
End If
My debugger points the problem line is
Forms!frmContact!contactdate = Format$(DateValue(Me.Date), "yyyy-mm-dd")
Also, Me.Date is in the format of '2/29/2006' before I use the Format$ to convert it to "yyyy-mm-dd'
This is a MS Access 2003 application that use SQL server as a backend.
Any help is appreciated!