Weird DataReport problems

Tech-Archive recommends: Speed Up your PC by fixing your registry



On my main data form, I have a cmdButton to display a DataReport. When I
click on the button (code below), it displays the data properly, but on my
main data form, it causes my "current record" label to show "-2 of 303"
(prior to hitting the cmdButton it shows "1 of 303").

But wait, there's more weirdness...if I put breakpoints on the 4 lines of
the cmdButton_Click() event, when it's done with the 3rd line (rpt.Show), my
report does not show the first record of my recordset and the "current
label" record on my main form shows "1 of 303". When I take the breakpoints
away, it reacts as stated in the paragraph above.

Private Sub cmdStoreDataReport_Click()
Set rptStoreData.DataSource = adoPrimaryRS
rptStoreData.Show
End Sub

Anyone have any ideas?

Thanks!

d


.


Quantcast