I can add data into form but not in the subform.

awiezzz

New member
Local time
Tomorrow, 06:49
Joined
Jun 16, 2004
Messages
9
Hi,
I want to add data into form frmStaff. Form frmStaff has subform sfrmStaffDetails. When i click on Add button, it will open frmStaff. I can add data into frmStaff but cannot add data into sfrmStaffDetails.
This is the code,
Code:
Private Sub cmdAdd_Click()
    DoCmd.OpenForm "frmStaff", , , , acFormAdd
End Sub

Any idea?
Thanx in advance.
 
when you open the form up without going through the open form procedure, can you add data into the subform??

If not then there is something wrong with you relationship between the 2 forms.
 

Users who are viewing this thread

Back
Top Bottom