I'm using MS Access 2003.
I'm puzzled about some behaviour that I cannot explain. Was hoping someone might be able to illuminate me.
I have a form on which I have a combo box, call it cbo1. In its AfterUpdate() event handler, I have the following code:
Note that fsubUntPurNewBaseUnitOptions is the name of the subform control, whose SourceObject is fsubUntPurBaseUnitOptions
If I view the form in Datasheet view, changing the value in the combobox results in the following error message 2455:
So two questions:
1. It's my understanding that I should be using subformcontrolname.Requery. So why does Access intellisense offer me
fsubUntPurNewBaseUnitOptions.Form.Requery?
2. Why should the error message appear in Datasheet View, but not in Form View?
Thanks for any help you can give.
Wayne
I'm puzzled about some behaviour that I cannot explain. Was hoping someone might be able to illuminate me.
I have a form on which I have a combo box, call it cbo1. In its AfterUpdate() event handler, I have the following code:
Code:
Me.fsubUntPurNewBaseUnitOptions.Form.Requery
Note that fsubUntPurNewBaseUnitOptions is the name of the subform control, whose SourceObject is fsubUntPurBaseUnitOptions
If I view the form in Datasheet view, changing the value in the combobox results in the following error message 2455:
However, if I view the form in Form View, changing the combobox value generates no error.You entered an expression that has an invalid reference the the property Form/Report.
So two questions:
1. It's my understanding that I should be using subformcontrolname.Requery. So why does Access intellisense offer me
fsubUntPurNewBaseUnitOptions.Form.Requery?
2. Why should the error message appear in Datasheet View, but not in Form View?
Thanks for any help you can give.
Wayne