Hmmm, Your structure is ok - I must be some thing else
In order to look for the problem, go to your property sheets of *both* forms
and change or ensure that *both* Allow Edits and Allow Additions are turned
on
Lets start from the obvious
A trap I occasionally fall into is to forget to make the subform a
continuous form. if you fell into the same trap in your sub form you will
see only one record, if there are any, or if there are no records you will
see only the new record. IIf you fell into the same trap, correct it.
Now, create a command button that do nothing (if your wizard is turned on
press cancel, in the wizard after you have drawn the button.
1. Open the property sheet for the button name and name it, Lets call it
"AddButton" (No quotations marks). Put in the caption or image, as you wish
2. Now, there are two possibilities:
a) Once the user click on "AddButton", he can add records regardless of
which record he/she will be in subsequently
Private Sub AddButton_Click()
Dim strSubForm As String
strSubForm = "YourSubForm"
Me.Form.AllowAdditions = True
Form(strSubForm).Form.AllowAdditions = True
'Note: both "Form" in singular
DoCmd>GoToControl "Your first field on the main form"
End Sub
b) The user has to click the "AddButton" every time he/she wants to add a
record.
Still use the Click event as above but add to the On Current Event Sub
( or Create one)
Dim strSubForm As String
strSubForm = "YourSubForm"
If Me.Form.NewRecord Then
Form(strSubForm).Form.AllowAdditions = True
Else
Me.Form.AllowAdditions = False
Form(strSubForm).Form.AllowAdditions = False
End If
+++++++
Advise: Always keep the AllowEdits turned on, if it is turned off you cannot
click buttons or use the scroll bars. you can disable (or lock) the fields
you want protected, if need be. If you disable a field *and* lock it you
will maintain the colour (i.e. it will not grey out).
My apology if I taught grandma how to sack eggs, Let me know how you go.
Regards/JK