R
rml
I have a form that onload, I have it set to maximize. On that form, I have a
command button that opens another form with that record. See code below.
The problems is that when I click the button, the second form also maximizes
and does not seem to take the properties I have set on it. IE: modal, pop
up, etc...
Why is this happening?
Thanks.
Private Sub Command384_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[auto] = " & Me.[auto]
DoCmd.OpenForm "QC Form", acViewPreview, , strWhere
End If
End Sub
command button that opens another form with that record. See code below.
The problems is that when I click the button, the second form also maximizes
and does not seem to take the properties I have set on it. IE: modal, pop
up, etc...
Why is this happening?
Thanks.
Private Sub Command384_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[auto] = " & Me.[auto]
DoCmd.OpenForm "QC Form", acViewPreview, , strWhere
End If
End Sub