B
babs
below is the code i have tied to the on click event of a command button
both forms normally open in Max. mode - when open individually
But for when I click on this command button would like the second form that
is listed(doesn't even seem to be opening with below) would like it to open
up in bottom of screen and the bottm part of the form to be displayed ON the
Maximized view of the 1st listed form
tried MoveSize and getting errors - tried looking it up on vb help and keeps
taking me to macros
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stDocName2 As String
Dim stLinkCriteria2 As String
stDocName = "JeffMainGenerate"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Maximize
stDocName2 = "Jeff Employee Info with Sched using for weekend"
DoCmd.OpenForm stDocName, , , stLinkCriteria2
DoCmd.Restore
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub
thanks,
barb
both forms normally open in Max. mode - when open individually
But for when I click on this command button would like the second form that
is listed(doesn't even seem to be opening with below) would like it to open
up in bottom of screen and the bottm part of the form to be displayed ON the
Maximized view of the 1st listed form
tried MoveSize and getting errors - tried looking it up on vb help and keeps
taking me to macros
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stDocName2 As String
Dim stLinkCriteria2 As String
stDocName = "JeffMainGenerate"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Maximize
stDocName2 = "Jeff Employee Info with Sched using for weekend"
DoCmd.OpenForm stDocName, , , stLinkCriteria2
DoCmd.Restore
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub
thanks,
barb