>I have 2 forms. Form1 and Form2. Form2 can be called from form1 or directly from the main menu. Inside Form2, can I know if it was called from form1 or from the main menu? Thanks
In the form Load event, you can check for:
if type("_screen.activeform.baseclass") = "C"
If that is TRUE, then another form called this form. The called form is not the active form until the Activate(). You can then set a variable:
oForm = _screen.activeform
If necessary you can test, if oForm.Name = "Form1_Name" ...
Mark McCasland
Midlothian, TX USA