Yes, I am going to need help on this. I have the first Command button (CmdSearch) set to access the entire form to search through. The second button (CmdAddNew) needs to be set so the default is a new record. What is the best way to go about this? Below is the current VBC
Code:
Option Compare Database
Private Sub CmdSearch_Click()
On Error GoTo Err_CmdSearch_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FmInitial"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_CmdSearch_Click:
Exit Sub
Err_CmdSearch_Click:
MsgBox Err.Description
Resume Exit_CmdSearch_Click
End Sub