W
Walter
I have a text box on a form to display the last odometer
entered for a specific truck based on the truck #
selected. I created a set of queries to select the
appropriate record. I pasted the SQL from the last query
into the AfterUpdate event of the Truck # control to set
the Control Source of the text box to this query. When I
go to form view and choose a truck I get Compile Error,
Syntax Error with the SQL code highlighted. Can someone
tell me what is wrong with my code.
Also, I am not sure this is the proper way to display
this information. I tried setting the Control Source to
the odometer field of the query(which seems to me to be
the same thing I am trying to do here) and requerying the
text box in the AfterUpdate event of the Truck # box but
I get ?Name.
Any help will will be greatly appreciated,
Walter
entered for a specific truck based on the truck #
selected. I created a set of queries to select the
appropriate record. I pasted the SQL from the last query
into the AfterUpdate event of the Truck # control to set
the Control Source of the text box to this query. When I
go to form view and choose a truck I get Compile Error,
Syntax Error with the SQL code highlighted. Can someone
tell me what is wrong with my code.
Also, I am not sure this is the proper way to display
this information. I tried setting the Control Source to
the odometer field of the query(which seems to me to be
the same thing I am trying to do here) and requerying the
text box in the AfterUpdate event of the Truck # box but
I get ?Name.
Any help will will be greatly appreciated,
Walter