klynch0803
Registered User.
- Local time
- Today, 14:40
- Joined
- Jan 25, 2008
- Messages
- 102
I have an error in this VB and it says Mismatch... Not sure what is wrong...
Can someone please help me find the error?
Can someone please help me find the error?
Code:
Dim strsql As Boolean
Debug.Print strsql = "SELECT * FROM qdatInventoryCheckupGather Diff " & _
"WHERE Diff = '' " & _
"ORDER BY Diff"
DoCmd.RUNSQL strsql
If Diff < 0 Then
'test
Diff = Converted
Set rst = db.OpenRecordset("tdatINVENTORYUSAGE", dbOpenDynaset)
With rst
.AddNew
!SaleDate = Now()
!Item = Item ' Item from strsql query
!Qty = Diff.Value ' Converted Value from strql sinve diff = converted above
!Price = "0.00"
!invShrtAdj = True
.Update
End With
End If
DoCmd.SetWarnings True