B
BigAl
I'm sure I solved this problem years ago but I don't do much database
writing these days.
Anyway:
2 tables relevant to my problem:
One table - NewLibraryPractice (don't ask, I didn't write that area)
contains a number of fields, the relevant ones to my problem being:
ShadeNumber (Primary Key, no duplicates),
Shade
Material
CustomerCode
The second table - WWOrders - I currently have set up with a look-up field
to the ShadeNumber from NewLibraryPractice.
What I need to do is update the ShadeNumber field in WWorders from the
NewLibaryPractice but at the same time auto filling 2 fields on the sub-form
with Shade and Material from the NewLibaryPractice table - there's no need
to store them anywhere, they just need to be displayed. The user HAS to see
those 3 fields (ShadeNumber, Shade, Material) when they make their selection
of the ShadeNumber as they need to see the extra detail to ensure they
select the correct code. At the same time, as there are over 6,000 shades to
choose from, they only want to see the relevant details for the specific
customer as determined by the CustomerCode field.
I nearly cracked it by using a combo-box showing the 4 fields with a
parameter entry for the customer code. That put my ShadeNumber in and by
having 2 fields (each =fieldname.column(1) and (2)) displayed the relevant
detail. The problem being that the ShadeNumber field in the table WWOrders
doesn't update with the selected data which needs to happen.
How can I fix this please folks, bearing in mind that I don't write code at
all (sorry, just a blind spot for me I'm afraid).
TIA for any and all advice.
BigAl
writing these days.
Anyway:
2 tables relevant to my problem:
One table - NewLibraryPractice (don't ask, I didn't write that area)
contains a number of fields, the relevant ones to my problem being:
ShadeNumber (Primary Key, no duplicates),
Shade
Material
CustomerCode
The second table - WWOrders - I currently have set up with a look-up field
to the ShadeNumber from NewLibraryPractice.
What I need to do is update the ShadeNumber field in WWorders from the
NewLibaryPractice but at the same time auto filling 2 fields on the sub-form
with Shade and Material from the NewLibaryPractice table - there's no need
to store them anywhere, they just need to be displayed. The user HAS to see
those 3 fields (ShadeNumber, Shade, Material) when they make their selection
of the ShadeNumber as they need to see the extra detail to ensure they
select the correct code. At the same time, as there are over 6,000 shades to
choose from, they only want to see the relevant details for the specific
customer as determined by the CustomerCode field.
I nearly cracked it by using a combo-box showing the 4 fields with a
parameter entry for the customer code. That put my ShadeNumber in and by
having 2 fields (each =fieldname.column(1) and (2)) displayed the relevant
detail. The problem being that the ShadeNumber field in the table WWOrders
doesn't update with the selected data which needs to happen.
How can I fix this please folks, bearing in mind that I don't write code at
all (sorry, just a blind spot for me I'm afraid).
TIA for any and all advice.
BigAl