S
SueM
Hi,
I have a form that collects data for a table (table1).
On that form I have a textbox which I want to have return
a value based on previous entries in 4 fields on the form
one of which relates to weight.
I can get the answer in a query, in a way in which can be
represented in a combobox for the usr to choose from, but
the values in one of the fields (weight) will be unlikely
on most occassions to be a direct match to the values
listed in a second table (table2) which contains the
values (kilojoules) which this textbox needs to extract
within it's query.
Is there a calculation I could add in to the query to ask
the query to return the weight value closest to the value
in the weight field on the form?
Many Thanks,
Sue
I have a form that collects data for a table (table1).
On that form I have a textbox which I want to have return
a value based on previous entries in 4 fields on the form
one of which relates to weight.
I can get the answer in a query, in a way in which can be
represented in a combobox for the usr to choose from, but
the values in one of the fields (weight) will be unlikely
on most occassions to be a direct match to the values
listed in a second table (table2) which contains the
values (kilojoules) which this textbox needs to extract
within it's query.
Is there a calculation I could add in to the query to ask
the query to return the weight value closest to the value
in the weight field on the form?
Many Thanks,
Sue