S
Simon
I have a form frmAllDealer that displays all my dealer i then have a
view button that open frmDealer up and displays all the info
i use the standard wizard code to open up the form
where about in the form and what code do i type so that it closes
frmAllDealer after frmDealer has opened
Thanks
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmDealer"
stLinkCriteria = "[AccountNumber]=" & Me![AccountNumber]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command11_Click:
Exit Sub
Err_Command11_Click:
MsgBox Err.Description
Resume Exit_Command11_Click
End Sub
view button that open frmDealer up and displays all the info
i use the standard wizard code to open up the form
where about in the form and what code do i type so that it closes
frmAllDealer after frmDealer has opened
Thanks
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmDealer"
stLinkCriteria = "[AccountNumber]=" & Me![AccountNumber]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command11_Click:
Exit Sub
Err_Command11_Click:
MsgBox Err.Description
Resume Exit_Command11_Click
End Sub