Cycle Through records

W

WireGuy

I have a form that contains from 1 to many records, I would like to perform a
validation comparing the quoted price to the cost price. (One Quote can
contain many parts)

I'm thinking it would look something like

Sub

Dim r

r = rows count

If quoted price < cost value then
msgbox " Change Quote"
Exit Sub
End if

Next r
End Sub

This is far from correct but I hope to get some assistance in creating this
validation step before sending through to generate the Access report (actual
quote)

Thanks!
Wireguy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top