G
Guest
I was wondering if one of you brilliant code-guys would take a look at this
little statement and let me know how to add a second join (i guess?) so that
it works.
table looks like this...
account name (J's) - item number (124547) - item description (dark roast
coffee)
account name (J's) - item number (321654) - item description (french vanilla)
account name (P's) - item number (987654) - item description (hazelnut creme)
When I run this code, I only get the first item in the list to update
propperlly. All of the other items in each customer profile is replaced by
the first item. The correct amount of items is displayed, just not the right
items. I'm sure it has to do with the join of the customer number (A5AN8 -
Cust Num Field.)
How do you add a second join after acct number so that I pull all of the
correct items? (Access 2003) - hope this all makes sense. (As always - I
appreciate your help!)
UPDATE AccountInformation RIGHT JOIN DLFILES_CLVREPORT1 ON
AccountInformation.A5AN8=DLFILES_CLVREPORT1.A5AN8 SET
AccountInformation.A5AN8 = DLFILES_CLVREPORT1.A5AN8,
AccountInformation.A5AN809 = DLFILES_CLVREPORT1.A5AN809,
AccountInformation.A5DFIJ = DLFILES_CLVREPORT1.A5DFIJ,
AccountInformation.OTLITM = DLFILES_CLVREPORT1.OTLITM,
AccountInformation.IMDSC1 = DLFILES_CLVREPORT1.IMDSC1,
AccountInformation.IMDSC2 = DLFILES_CLVREPORT1.IMDSC2,
AccountInformation.ABAC04 = DLFILES_CLVREPORT1.ABAC04,
AccountInformation.IMSRP2 = DLFILES_CLVREPORT1.IMSRP2,
AccountInformation.ABAC02 = DLFILES_CLVREPORT1.ABAC02;
little statement and let me know how to add a second join (i guess?) so that
it works.
table looks like this...
account name (J's) - item number (124547) - item description (dark roast
coffee)
account name (J's) - item number (321654) - item description (french vanilla)
account name (P's) - item number (987654) - item description (hazelnut creme)
When I run this code, I only get the first item in the list to update
propperlly. All of the other items in each customer profile is replaced by
the first item. The correct amount of items is displayed, just not the right
items. I'm sure it has to do with the join of the customer number (A5AN8 -
Cust Num Field.)
How do you add a second join after acct number so that I pull all of the
correct items? (Access 2003) - hope this all makes sense. (As always - I
appreciate your help!)
UPDATE AccountInformation RIGHT JOIN DLFILES_CLVREPORT1 ON
AccountInformation.A5AN8=DLFILES_CLVREPORT1.A5AN8 SET
AccountInformation.A5AN8 = DLFILES_CLVREPORT1.A5AN8,
AccountInformation.A5AN809 = DLFILES_CLVREPORT1.A5AN809,
AccountInformation.A5DFIJ = DLFILES_CLVREPORT1.A5DFIJ,
AccountInformation.OTLITM = DLFILES_CLVREPORT1.OTLITM,
AccountInformation.IMDSC1 = DLFILES_CLVREPORT1.IMDSC1,
AccountInformation.IMDSC2 = DLFILES_CLVREPORT1.IMDSC2,
AccountInformation.ABAC04 = DLFILES_CLVREPORT1.ABAC04,
AccountInformation.IMSRP2 = DLFILES_CLVREPORT1.IMSRP2,
AccountInformation.ABAC02 = DLFILES_CLVREPORT1.ABAC02;