I have a set of forms that are similiar to a five page application. I am trying to get a button to activate from the main form to go to the Subform Page. If there is no record is should open to a new record otherwise it should go to the exisitng record.
The main form is linked to a Main table and each of the Subforms are linked to to their own table with a common key to join to the main table.
Right now my button on the main form code work fine for the existing records but it does not default to new: Need a little help here for the next step to set controls for the new records???
Private Sub Toggle_120_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Grassfed_Entry_Form"
strWhere = "[ID]=" & Me!ID
DoCmd.OpenForm strDocName, acNormal, , strWhere
End Sub