The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

UFicle: Excel gurus ( by oEdLaN 2009-10-26 02:58:12
Hi. I have a query that gives me the Postal codes of where $Article have been sold. This is how the query looks:

XLODBC 1 DBQ=W:\FTG21.MDB;DefaultDir=W:\;Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions =0;Threads=3;UserCommitSync=Yes; SELECT Ordfakthuvud.Kundpostadress, 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 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.

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 ]
  More like QUERY savvy UFies. (n/t) by oEdLaN2009-10-26 02:58:53
    i'm not good at excel by Klymer2009-10-26 03:03:33
      That's OK, cause this is MS-Access Data~Not Excel. by inittab2009-10-26 12:24:40
  You should be able to use the LIKE clause by merlin2009-10-26 03:01:59
  Try "column LIKE 'text%'" by Khaar2009-10-26 03:02:02

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)