D
DS
This DLoopUp doesn't seem to be working.....
I'm looking up the Taxed field. If No records where Taxed equals "True"
are found I want the loop to run...If no nothing happens.
Private Sub Command78_Click()
With Forms!Sales.SalesDetails.Form.Recordset
If DLookup("[Taxed]", "SalesDetailsQ", "[SalesID]=" &
Forms!Sales!SalesID & " AND [Taxed]=True") = 0 Then
.MoveFirst
Do While .EOF = False And .BOF = False
.Edit
!SDInclusive = True
!SDTaxed = False
.Update
.MoveNext
Loop
End If
End With
End Sub
Thanks
DS
I'm looking up the Taxed field. If No records where Taxed equals "True"
are found I want the loop to run...If no nothing happens.
Private Sub Command78_Click()
With Forms!Sales.SalesDetails.Form.Recordset
If DLookup("[Taxed]", "SalesDetailsQ", "[SalesID]=" &
Forms!Sales!SalesID & " AND [Taxed]=True") = 0 Then
.MoveFirst
Do While .EOF = False And .BOF = False
.Edit
!SDInclusive = True
!SDTaxed = False
.Update
.MoveNext
Loop
End If
End With
End Sub
Thanks
DS