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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-up a form

Status
Not open for further replies.

Xenocide

Programmer
Jan 20, 2005
76
CA
Hi

I have a normal form called CreateId. Normally I use the menu i made to call it. But I need to call it from another form called EnterFee if a special case occur.

I would like CreateId to be called as a pop-up instead of taking all the screen.. is that possible.. without modifying CreateId itself so it stay normal when I use it normally by the menu?

Thanks
 
Try:

DoCmd.OpenForm "Form1", acNormal, , , , acDialog

John Borges
 
With jbpez, I suggest to use OpenArgs of the form. So that you can control the second form's style & properties as well here is a sample how to do it..
Code:
DoCmd.OpenForm "Form1", acNormal, , , , acDialog[COLOR=red], "FrmEmployees"[/color]

Code:
[b][COLOR=green]'This code for the second form[/color][/b]
Private Sub Form_Load()
Select Case Forms!FrmEmpMaster.OpenArgs

[COLOR=green]'Opening from Employees Listview on frmStartup subform===========[/color]  
 Case [COLOR=red]"FrmEmployees"[/color]         
         Me.AllowEdits = False
         Me.Caption = "Details of " & Me.Text16.Value        
         Me.cmdCanelMasterForm.Visible = False
         Me.cmdNextMain.Visible = False
         Me.cmdStart.Visible = False
         Me.CmdMainSaveClose.Caption = "Close"         
[COLOR=green]'Opening for New Employee entry ============================[/color] 
  Case [COLOR=red]"NewEmployee"[/color]
         Me.Caption = "New Employee"
         Me.EmployeeID.SetFocus
         Me.CmdMainSaveClose.Enabled = False    
End Select
End Sub
Regards

Zameer Abdulla
Visit Me
 
thanks guy it helped a lot

btw sorry for the delay but I only go see my stuff on Tek-tip at work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top