This is giving me a syntax error of "Missing Operand" I have tryed putting an = sign inside the ( out side the ( removing the outer() and using a varible all come back with various syntax errors.
this is on an access report
<code>
Private Sub Report_Activate()
Do Until (DSum("Gallons Received", "qryDGLRPT", "product code=product code"
) <= (Forms![frmDGLRPT]![GALLONS1])
Loop
End Sub
</code>
this is on an access report
<code>
Private Sub Report_Activate()
Do Until (DSum("Gallons Received", "qryDGLRPT", "product code=product code"
Loop
End Sub
</code>