help in report viewing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i made a dbase for students,what i want to do is that every changes i made in
the form will be automatically displayed when i click the report preview
button..what coding should i do?..thanks
 
hi Renato,

Renato said:
i made a dbase for students,what i want to do is that every changes i made in
the form will be automatically displayed when i click the report preview
button..what coding should i do?..thanks
You need to save the changes before viewing your report. If you are
using a macro, switch to an event procedure like that:

Private Sub cmdShowReport_Click()

On Local Error Goto LocalError

If Dirty Then Dirty = False

DoCmd.OpenReport "YourReport", acViewPreview

Exit Sub

LocalError:
MsgBox Err.Description

End Sub


mfG
--> stefan <--
 

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

Similar Threads


Back
Top