Click to See Complete Forum and Search --> : MDI


cem
March 27th, 2001, 09:50 PM
Hi,

My project needs a MDI form to show multiple reports (child windows).

For example I have three forms: frmMain, frmReport(Child) and frmMDI (Parent). There is a command, cmdReport, in frmMain:
Private Sub cmdReport_Click
Value=Value+1 'Value is declared in Module
Dim frmNew As frmReport
Set frmNew = New frmReport
frmNew.Show
End Sub

In frmReport I put code as
Private Sub Form_Load()
Print Value
End Sub

Users should be able to get a new report everytime they click on cmdReport while the old reports still exist. However, what happen is that
the report is always the old report (the new old never show up)
Can anyone help me?

Timothy
March 28th, 2001, 01:22 AM
In frmReport put the Show before the Print Value, so you can really see that the Value is updated.