|
|
Back to UserFriendly Strip Comments Index
|
UFicle: Excel gurus ( | by oEdLaN | 2009-10-26 02:58:12 |
|
More like QUERY savvy UFies. (n/t) | by oEdLaN | 2009-10-26 02:58:53 |
|
i'm not good at excel | by Klymer | 2009-10-26 03:03:33 |
| That's OK, cause this is MS-Access Data~Not Excel. |
by inittab |
2009-10-26 12:24:40 |
Reading through the Query Text you gave...
##-- Most of the lines below are just configuration+setup_options.
XLODBC 1 DBQ=W:\FTG21.MDB;DefaultDir=W:\;
Driver={Microsoft Access Driver(*.mdb)};
DriverId=25;FIL=MSAccess;
MaxBufferSize=2048;
MaxScanRows=8;
PageTimeout=5;
SafeTransactions=0;
Threads=3;
UserCommitSync=Yes;
##-- This is the real "Query" (as you supplied)
SELECT Ordfakthuvud.Kundpostadress,
&NBSP Ordfakthuvud.Kundnummer,
Ordfakthuvud.Kundnamn,
Ordfakthuvud.Fakturadatum,
Ordfaktrad.Produktnr
FROM `W:\FTG21`.Ordfakthuvud Ordfakthuvud,
W:\FTG21`.Ordfaktrad Ordfaktrad
WHERE Ordfaktrad.Nummer = Ordfakthuvud.Nummer
AND ((Ordfakthuvud.Fakturadatum>{ts '2000-12-31 00:00:00'})
AND (Ordfaktrad.Produktnr=?))
ORDER BY Ordfakthuvud.Kundpostadress
##-- Don't recognize:
ANGE PRODUKTNR 12 KundpostadressKundnummerKundnamnFakturadatumProduktnr
Our products are grouped, and I would like to get
ALL products from a certain group.
If an article is named 13-HK777, it belongs to group 13.
Now, when using the query I must specify the exact article name, I can't just write '13-', but I'd like to be able to.
You Might try the following:
SELECT Ordfakthuvud.Kundpostadress,
&NBSP Ordfakthuvud.Kundnummer,
Ordfakthuvud.Kundnamn,
Ordfakthuvud.Fakturadatum,
Ordfaktrad.Produktnr
FROM `W:\FTG21`.Ordfakthuvud Ordfakthuvud,
W:\FTG21`.Ordfaktrad Ordfaktrad
WHERE Ordfaktrad.Nummer = Ordfakthuvud.Nummer
AND ((Ordfakthuvud.Fakturadatum>{ts '2000-12-31 00:00:00'})
AND (Ordfaktrad.Produktnr LIKE '13-%'))
ORDER BY Ordfakthuvud.Kundpostadress
Anyone knows how to get this info?
If so, when I write '13-', it's not supposed to include 'R13-' (spare parts for group 13)
|
|
[ Reply ] |
|
|
[Todays Cartoon Discussion]
[News Index]
|
|