Thanks for the response.
Let me give you an overall scenario of what i am trying to do.I have a
combo list on the main form which is linked to the child form.The child
form is for the data entry purpose for the employee selected from the
main form.When I select the first emplouyee No in the combo i do not get
this message,but it is not inserting the employee number also selected
the from the main form.But when i select the second employee number from
the main form i get this error.I do not have any macro attached to the
coombo except for the code i have written for the control in the after
update event
The error message is "Macro or ites group macro does'nt exits /macro is
new and have'nt saved.Nit that when you enter macrogroupname.macroname
syntax in an argument you must specify the name the macro's macro group
was last saved under".
The other error I get is :The changes you requested was not saved cos
they would create dupliacte values in the index,primary key or
realtionship.remove the index or redifing the index or change the values
in the field."
I have written code for inserting the employee number to the subform
selcted from the main form
But still.....
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsSubform(Me) Then
If IsNull(Me.Empno) Then
Me.Empno = Me.Parent.Empno
End If
End If
End Sub
please help have been trying this for a week :)
Regards
Dos lil
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!