Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Asp.net retreiving ms access information

 
Thread Tools Search this Thread
Old 06-04-2008, 06:42 PM   #1
Default Asp.net retreiving ms access information


ok here goes,

i have basically inherited a database that stores date values and
totals. the total is stored as a numeric and the date values is
surprisingly stored in a STRING field - which i think is the problem.
This is all good and well whilst working in access itself but im
querying using dates in the WHERE field from asp.net and im having
problems converting the data to give me the search results that i
want. Another issue that i have is that im using the the UK date
format - have a look at the example below - all idea appreciated.

The best way to show my problem is the following

Eg. i use the following SQL

SELECT Total,orderdate FROM orders WHERE cdate(orderdate) >=
#3/1/2008# AND cdate(orderdate) <= #3/31/2008# Order by
cdate(orderdate) ASC

and it returns results such as

14/03/2008
14/03/2008
03/05/2008
03/06/2008


i would have thought that it should only return 14/03/2008 which is
what i want ?? but the other returned values are skewing my
calculation. again im based in the UK and this may be a part of my
problem. Unfortunately i cant change the string DATE field to a Date
datatype.

any help appreciated.

CG


csgraham74
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I cant access the MCP site T3M4N MCTS 1 03-18-2008 06:21 PM
Computer Security Information and What You Can Do To Keep Your SystemSafe! Ann.Anderson.group.com@gmail.com A+ Certification 0 12-06-2007 01:55 AM
ASP.net 2.0 .. Stuck with DBF file access from Network Drive kaushalparik Software 1 04-26-2007 10:36 AM
how to access information returned by HTML submit/post command philipvelicity Software 0 09-16-2006 12:42 PM
Re: 7. The truth about our creator. .7 john smith DVD Video 2 07-25-2003 03:54 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46