Form maximization

G

Guest

I have form that is open by clicking a button, would like to have the form
maximized.

Following is the code:
Private Sub f0_ich_Click()
On Error GoTo Err_f0_ich_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "f0_ICH"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_f0_ich_Click:
Exit Sub

Err_f0_ich_Click:
MsgBox Err.Description
Resume Exit_f0_ich_Click

End Sub

What do I need to add for the form to be maximized.

Thanks
 
T

tina

*in the form you want to maximize*, add the following code to the form's
Load event procedure, as

DoCmd.Maximize

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top