Updating fields in report?

Hartkoorn

Registered User.
Local time
Today, 19:37
Joined
Aug 12, 2006
Messages
19
K,
Going great now, mainly due to the information found on this forum.

Breaking my head again on a thing here:
I have a tabbed form, one of these tabs is called reports, the others used to enter information.
Now if I change some data in the form and switch to the reports tab and hit the view report button, the data in the report is still the old data.
Any ideas on how to solve this?
Thanks in advance.
 
Now I found that if you move up one record and down again the data does show when viewing the report.
Is there a code which moves up one record and down again which I can run when the Reports tab is clicked?
 
Tried to add the following code to the onClick event in the tab but it doesn't work, any ideas where to put the code?
Code:
Private Sub Rapporten_Click()
On Error GoTo Err_Rapporten_Click


    DoCmd.GoToRecord , , acNext
    DoCmd.GoToRecord , , acPrevious

Exit_Rapporten_Click:
    Exit Sub

Err_Rapporten_Click:
    MsgBox Err.Description
    Resume Exit_Rapporten_Click
 
End Sub
 

Users who are viewing this thread

Back
Top Bottom