I go along with what Rick said. When you go from one record to another in a
continuous form, the first record gets saved. It's too late to go back and
check the first record.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com www.pcdatasheet.com
"Paolo" <prabbit@netspace.net.au> wrote in message
news:crqpj0$20lv$1@otis.netspace.net.au...[color=blue]
>
> "Rick Brandt" <rickbrandt2@hotmail.com> wrote in message
> news:34bnuqF479po3U1@individual.net...[color=green]
> > Paolo wrote:[color=darkred]
> >> I have a save button in a continuous form called Purchase Order. The
> >> button contains several conditional statements which make sure that
> >> all mandatory fields are properly filled out by the user. When the
> >> button in clicked it only applies the statement to the record the
> >> cursor is currently working on. I would like the button to apply to
> >> all the records. I tried a Do/Loop statement sending the focus to the
> >> next record, but once it gets to the end I get an error message
> >> saying: "Cannot find specific record." I also have tried a Do Until
> >> Loop and again it stops only at one record.
> >> Any suggestions???
> >>
> >> Thanks in advance...
> >>
> >> Paolo[/color]
> >
> > I fail to see the need for this. Your validation should be applied[/color][/color]
before[color=blue][color=green]
> > a record is allowed to be saved and all of the other rows on a[/color][/color]
continuous[color=blue][color=green]
> > form have already been saved so why any need to check them?
> >
> > --
> > I don't check the Email account attached
> > to this message. Send instead to...
> > RBrandt at Hunter dot com[/color]
>
> This is what the form is for: it reports details of a specific purchase
> order against the details of the supplier invoice and the details of a[/color]
form[color=blue]
> that the warehouse needs to fill out manually (count of physical stock).[/color]
The[color=blue]
> data entered has to equal from Qty Received to Qty Order and Qty Invoiced.
> The same has to happen for Cost Order and Cost Invoiced. The form has 3
> Variance columns that compare the details above. When the user click on[/color]
the[color=blue]
> "Save" button this button should check that every variance for each record
> equals to 0.00, if it doesn't it gives a warning message and does not[/color]
allow[color=blue]
> the user to save.
> Unfortunately I can't make the button check every record (or every line)[/color]
it[color=blue]
> just stops at the one where the cursor is flashing...
> I hope I made a little more sense this time....
> Thanks again for your help
>
>[/color]