|
Mike Hi packed data on the machine side is kinda foreign to VB. If you can, (I'm a bit of a VB novice myself), try bringing the packed data into a variable, before you do the select. Apart from that, take an eye-ball view of the two fields you're comparing. Good luck.. Ken "Smith, Mike" wrote: > > Hi all, > I'm trying to run a sql statement using ODBC through a VBA. The Database on > the 400 has a Numeric field defined 8.0p(used as a date field). > i've created a SQL statement that lets me select records from the file, > however, when i try to condition the select based on the date field i get > cryptic errors. > > ideally i'm trying to select the data based on the current date. However, > since i couldn't get that to work, i thought i would just try DATEFIELD > 0, > that doesn't work either. > > Here is my select statement. > SQLstr = "create view DISPATCH_V as select * from UFDB,UFDBS,UCSRFD where > PZBSB = P1BSB and P1MTR = PWMTR and PZBSB > 0" > > can someone tell me what i might be doing wrong. > also if i want to change the sql to PZBSB = Curdate(where curdate is a > variable) is there anything special about doing that. > > Thanks > > Mike > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. -- Best Regards Ken Shields Home phone: 905 404-2062 Bus phone 905 725-1144 (326)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.