Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open form as a class - windowmode

Status
Not open for further replies.

MissyEd

IS-IT--Management
Feb 14, 2000
303
GB
Hi

Im opening a form as a class - but I would like to make it open in dialog mode. Mainly because I need to user to make a selection from the form before the code in the main form continues to execute.

Any ideas ?

Heres my code

Dim clsPrintList As Form_frmPrintList
Set clsPrintList = New Form_frmPrintList
With clsPrintList
.refno = Me.fileid
.Form_LoadFiles
.PTypeID = 1
.Form_Show <--- i want to stop here and wait for the use to select something from this form.
End With


Missy Ed - Bolton, UK
 
Hi

The form is modal and pop-up and its border is set to dialog - no joy :( Missy Ed - Bolton, UK
 
PS

I also tried to set the modal property via code ie. .modal = true - but still no joy Missy Ed - Bolton, UK
 
The code won't stop.....

The code only stops when you open the form via the &quot;docmd.openform&quot; method.

With your method, you could put a loop in the code to check if the form is visible/open.

Cheers,
Dan

 
Thanks for your help Dan. I havent been able to access tek-tips all week, but your idea worked a treat. Missy Ed - Bolton, UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top