Change Field In Table From Form

A

Aldo

I have two tables x and y. I have a form built from x.
In the x form I have a combo box controled by a field in
x but getting selection data from y. I would like for
the combo box to control the data in a second x field
with data from a second y field.

REMOTE LOCATION
Location Combo Location
Mileage Mileage

When I select a location from Location.Location in the
combo-box, how do I get the Location.Mileage into
Remote.Mileage
 
M

Marshall Barton

Aldo said:
I have two tables x and y. I have a form built from x.
In the x form I have a combo box controled by a field in
x but getting selection data from y. I would like for
the combo box to control the data in a second x field
with data from a second y field.

REMOTE LOCATION
Location Combo Location
Mileage Mileage

When I select a location from Location.Location in the
combo-box, how do I get the Location.Mileage into
Remote.Mileage


Set the combo's rwo source to include bot columns from the
Locations table (change ColumnCount if needed). Then the
mileage text box can display the value for the location by
using the expression =[Location Combo],Column(1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top