how to see if a form is open

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

Guest

Problem for AC2000.

I have a form called 'Money form' which basically allows the user to tally
up the costs for a student. By clicking buttons to open popup forms and using
filters i can display related records (if any) for the student on this main
form.
There is a table for Payment which the 'Money form' is based on and there
are additional tables for each cost that may be incurred, which the forms for
each are based on.

Its working for transmitting data from the main form to the subform, i just
supply arguments when the form opens, however im having trouble sending
infromation the other way, ie collecting the calculated costs after tax and
discounts etc. back to the main payment form so that it can be used to sum
the total payment. It works if the main form is open but there are error
messages if the forms are openned independently (as can be the case).

How can i detect if the 'Money form' is open or not from another form?
 
Check the Utility Module in the Northwind sample database. There is an
IsLoaded function you can use.
 
CurrentProject.AllForms("Money form").IsLoaded will return Trues if the Form
is open and False otherwise.
 
Hi,
Thanks, i actually found the Isloaded property on the MSDN site about half
an hour after id posted this!

But thanks all the same

Amit
 
Back
Top