J
Jim Bunton
Access 97, Win 2000
Have a form with several subforms.
Works fine with tables linked to an Access Back End
Now linked to an SQL Server BackEnd
Form RestaurantMenus opens fine
BUT on clicking an entry in a combo which selects a record
This line of code:-
Forms!RestaurantMenus!R_OpeningHours.Form!TaRetSame.Caption = "Ta<>Re"
gives the error:-
2467
The expression you entered refers to an object that is closed or doesn't exist.@For example, you may have assigned a form to a Form object variable, closed the form, and then referred to the object variable.@@1@@1--
NB
RestaurantMenus!R_OpeningHours.Form!TaRetSame.Caption
Main Form Name!SubFormName SubForm Control
and strangely!
this line of code which precedes the failing one
Forms!RestaurantMenus!RestaurantMenuItemGroups.Form.Requery
does not cause an error
Jim Bunton
Have a form with several subforms.
Works fine with tables linked to an Access Back End
Now linked to an SQL Server BackEnd
Form RestaurantMenus opens fine
BUT on clicking an entry in a combo which selects a record
This line of code:-
Forms!RestaurantMenus!R_OpeningHours.Form!TaRetSame.Caption = "Ta<>Re"
gives the error:-
2467
The expression you entered refers to an object that is closed or doesn't exist.@For example, you may have assigned a form to a Form object variable, closed the form, and then referred to the object variable.@@1@@1--
NB
RestaurantMenus!R_OpeningHours.Form!TaRetSame.Caption
Main Form Name!SubFormName SubForm Control
and strangely!
this line of code which precedes the failing one
Forms!RestaurantMenus!RestaurantMenuItemGroups.Form.Requery
does not cause an error
Jim Bunton