Adjust a QUERY

Maurizio

Well-known Member
Joined
Oct 15, 2002
Messages
691
Office Version
  1. 2007
Platform
  1. Windows
By ODBC Access 2000 gets data.
Into a ODBC's linked table I get CLF_RGSOC's data (none_ANACLF).
Into another ODBC's linked table I get accessory IRI_DESDI's data (none_INDIRI).

That's my problem:

with my under query I cannot get data which field .CLF_RGSOC have not an accessory IRI_DESDI's data to none_ANACLF.CLF_RGSOC. I'd like get (none_ANACLF.CLF_RGSOC) + (none_INDIRI.IRI_DESDI) of course empty.

Tia.


SELECT none_ANACLF.CLF_RGSOC, none_ANACLF.CLF_CD, none_INDIRI.IRI_DESDI, none_ANACLF.CLF_CAP, none_ANACLF.CLF_CIT, none_ANACLF.CLF_PRV, none_ANACLF.CLF_TEL, none_ANACLF.CLF_FAX, none_ANACLF.CLF_AZI
FROM none_ANACLF INNER JOIN none_INDIRI ON (none_ANACLF.CLF_MS = none_INDIRI.IRI_MS) AND (none_ANACLF.CLF_CD = none_INDIRI.IRI_CD) AND (none_ANACLF.CLF_AZI = none_INDIRI.IRI_AZI) WHERE (((none_ANACLF.CLF_AZI)=2) AND ((none_ANACLF.CLF_MS)=98));
8.xls
ABCD
1none_ANACLF
2CLF_CDCLF_RGSOC
31Carlo
42Diego
53Walter
64Maury
75Stephy
8
9none_INDIRI
10IRI_CDnone_INDIRI
112Rome
124Milan
135Venice
14
15Iget:
162DiegoRome
174MauryMilan
185StephyVenice
19
20I'dlike:
211Carlo
222DiegoRome
233Walter
244MauryMilan
255StephyVenice
Foglio2
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
If you go into your query in design mode you can select and right-click the join between the two tables. this will bring up a box that will let you change them from from a standard join to one that will show all records for either of the tables. you will need to repeat it for each of the joins between the tables.


HTH

Peter
 
Upvote 0
Hi Peter,
thanks and...
db.xls
ABCDE
1HowcanItotrasformDatalike:
2DATACLIDDTDESCRIZPGRN
303/09/0331111619M-13641
403/09/033111A034492
503/09/0331112412M-6173
603/09/031722412M-1711
703/09/031722412M-8892
803/09/031721626M-11253
903/09/03172706D-15564
10So:
11DATACLIDDTDESCRIZ
1203/09/0331111619M-1364/A03449/2412M-617
1303/09/031722412M-171/2412M-889/1626M-1125/706D-1556
DataBase
 
Upvote 0
I don't think that you can using normal quries. You would need to use VBA to accumulate the data and save it to a new table.

Peter
 
Upvote 0

Forum statistics

Threads
1,221,556
Messages
6,160,476
Members
451,649
Latest member
fahad_ibnfurjan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top