T
tomrector
I have been working for a while on a subform and cascading fields .
The cascade will work when the subform(Work) is open by itself.
The following code is in AfterUpdate of the cascading field
(PartsUsed1) that the data relates to.
Private Sub PartsUsed1_AfterUpdate()
Forms!Work![PartsSell1].Requery
End Sub
When the subform (Work) is open in the MainForm the casade doesn't
allow 'requery' giving the following error,
Access can't find the Form 'Work' referred to in the Visual Basci
code.
How do I specify the form 'Work' in the code so that Access will
recognize it.
Thanks for any help that you may direct my way !
The cascade will work when the subform(Work) is open by itself.
The following code is in AfterUpdate of the cascading field
(PartsUsed1) that the data relates to.
Private Sub PartsUsed1_AfterUpdate()
Forms!Work![PartsSell1].Requery
End Sub
When the subform (Work) is open in the MainForm the casade doesn't
allow 'requery' giving the following error,
Access can't find the Form 'Work' referred to in the Visual Basci
code.
How do I specify the form 'Work' in the code so that Access will
recognize it.
Thanks for any help that you may direct my way !