Topic Options
#57823 - 06/23/18 10:09 AM OBDC SQL Query with WHERE condition
BT_Peace Offline
Adagio Groupie

Registered: 08/18/12
Posts: 19
Loc: Arizona
Hi,

I am using the ODBC to pull transaction history and can pull all of it. However this takes
a bit of time and I really need to only pull certain dates. When trying to use the WHERE
condition, I get the odd error of

[Softrak Systems][SQLEngine] (31750) Column not found: 20180412

Which is the date of my query that I am looking for.

Here is the query string

SELECT Code, Item, TrxDateCode, Detail ,Reference,TrxDate,StockQty,SaleAmt,ExtCost FROM ICTransactionHistory__an92ahaj WHERE ICTransactionHistory__an92ahaj.TrxDateCode="20180412"


Can anyone tell my why this does not work?

Thanks!
Brian

Top
#57824 - 06/23/18 10:16 AM Re: OBDC SQL Query with WHERE condition [Re: BT_Peace]
BT_Peace Offline
Adagio Groupie

Registered: 08/18/12
Posts: 19
Loc: Arizona
Never Mind. TrxDateCode is a number not a string.... .DOH!

Top
#57825 - 06/23/18 11:45 AM Re: OBDC SQL Query with WHERE condition [Re: BT_Peace]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Sometimes I would explain to my Mom why some piece of code could not possibly be doing what it was doing. Usually the problem became apparent pretty quickly! wink

Glad you're back on track.
_________________________
Andrew Bates

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 48 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14458 Topics
70633 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30