Getting a type mismatch error (-2147352571 (80020005)) on this line of code
![RecievedDate] = Format(Me.txtRe cDate, "\#mm\/dd\/yyyy\#")
I can't find the error number refenced anywhere. Any hints or helps would be appriciated.
I'm using Access 2007
Here is more code:
![RecievedDate] = Format(Me.txtRe cDate, "\#mm\/dd\/yyyy\#")
I can't find the error number refenced anywhere. Any hints or helps would be appriciated.
I'm using Access 2007
Here is more code:
Code:
Set rst = New ADODB.Recordset rst.Open "tblOrders", CurrentProject.Connection, adOpenDynamic, adLockOptimistic With rst .AddNew ![JobID] = """" & Me.txtJobID & """" ![JobSubID] = """" & Me.cboJobSubID & """" ![JobType] = """" & Me.cboJobType & """" ![Model] = """" & Me.cboModel & """" ![Lot] = """" & Me.txtLot & """" Debug.Print "#" & Me.txtRecDate & "#" Debug.Print Format(Me.txtRecDate, "\#mm\/dd\/yyyy\#") ![RecievedDate] = Format(Me.txtRecDate, "\#mm\/dd\/yyyy\#") Debug.Print "after date" ![CustomerID] = Me.cboCustomer.Column(0) .Update End With rst.Close Set rst = Nothing
Comment