E
EMILYTAN via AccessMonster.com
Below are my codes.
I want to check every row...if the quantity pending is <> 0 then end and it
will show the part number where the quantity pending <> 0....
But seems there is error in my loop statement...
Code:
mySQL = "SELECT WIPRawDetails.PartNumber, WIPRawDetails.W_QtyPending " &_
"FROM WIPRawDetails " & _
"WHERE WIPRawDetails.JobNumber= '" & Me.txtJobNumber & "' "
Debug.Print mySQL
myrecset.Open mySQL
Do Until myrecset.EOF
If W_QtyPending <> 0 Then
MsgBox "No completion"
End
Else
myrecset.MoveNext
End If
Loop
myrecset.Close
I want to check every row...if the quantity pending is <> 0 then end and it
will show the part number where the quantity pending <> 0....
But seems there is error in my loop statement...
Code:
mySQL = "SELECT WIPRawDetails.PartNumber, WIPRawDetails.W_QtyPending " &_
"FROM WIPRawDetails " & _
"WHERE WIPRawDetails.JobNumber= '" & Me.txtJobNumber & "' "
Debug.Print mySQL
myrecset.Open mySQL
Do Until myrecset.EOF
If W_QtyPending <> 0 Then
MsgBox "No completion"
End
Else
myrecset.MoveNext
End If
Loop
myrecset.Close