G
Guest
Hi all.
I'm using a Subform to represent the 'many' part of a 'one-to-many'
relationship between Tables.
The 'one' side corresponds to Transaction Numbers, and the 'many' side to
Transaction Line Numbers (ie, each Transaction may have many Lines in it).
The Subform's 'Default View' Property is set to Continuous Forms.
For some fields of the Subform I want to do a Lookup into some other Table
based on the value of a Control of the Subform for the specific record that
is active on the Subform.
The Lookup works fine (i use a DLookup in VBA), the problem is that the
value returned is shown on all of the Subform's records (when I only want it
to show on the current record).
To clarify:
The user picks a Service from the Subform.
I want to perform a Lookup in order to show on the current record of the
Subform the Price per Unit for the chosen Service.
The Lookup is performed, but the returned value is shown in all the 'Price
per unit' records of the Form.
This is undesirable, since for the next Subform record the user may choose a
different Service, that will have a different Price.
Again the new price (derived from the Lookup) will occupy all the Subform
records (even though the information is stored correctly in the Tables, ie
each Service gets its individual Price correctly).
Thus this is mostly a display issue.
Any word of wisdom on how to resolve this?
Thank you,
Alex
I'm using a Subform to represent the 'many' part of a 'one-to-many'
relationship between Tables.
The 'one' side corresponds to Transaction Numbers, and the 'many' side to
Transaction Line Numbers (ie, each Transaction may have many Lines in it).
The Subform's 'Default View' Property is set to Continuous Forms.
For some fields of the Subform I want to do a Lookup into some other Table
based on the value of a Control of the Subform for the specific record that
is active on the Subform.
The Lookup works fine (i use a DLookup in VBA), the problem is that the
value returned is shown on all of the Subform's records (when I only want it
to show on the current record).
To clarify:
The user picks a Service from the Subform.
I want to perform a Lookup in order to show on the current record of the
Subform the Price per Unit for the chosen Service.
The Lookup is performed, but the returned value is shown in all the 'Price
per unit' records of the Form.
This is undesirable, since for the next Subform record the user may choose a
different Service, that will have a different Price.
Again the new price (derived from the Lookup) will occupy all the Subform
records (even though the information is stored correctly in the Tables, ie
each Service gets its individual Price correctly).
Thus this is mostly a display issue.
Any word of wisdom on how to resolve this?
Thank you,
Alex