Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 2nd, 2003, 12:07 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
Access Fails to Recognize Valid SQL

Given the following SQL statement:
Code:
SELECT cycle, month FROM the_table WHERE cycle <= 49999 AND cycle > 49999-10000

and the following table record:
Code:
ID   CYCLE   MONTH   OTHER....STUFF
--------------------------------------------
41   40100   February   ....................
--------------------------------------------

Am I incorrect in my belief that that if I feed the SQL statement above to Access, it should return the cycle and month from record 41? The SQL statement executes without error, as does the code and other statements in the same code. However, the SQL statement above, when applied, does absolutely nothing. I cannot figure for the life of my WHY it does not return this record? I know from other statements that the 49999-10000 does indeed become 39999 like it should. What else could I possibly be missing?

I know the code itself (perl) is not to blame for reasons that would take another 3 pages of post to explain. Needless to say, however, I have thoroughly covered that venue. Event when I change the statement to explicitly read:
Code:
SELECT ID FROM the_table WHERE cycle = 40100

It returns absolutely nothing from Access. Ugh... what a headache..

Thanks,
Chris

Reply With Quote
  #2  
Old January 2nd, 2003, 12:28 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
Oh for crying out loud....

We have two databases, one to develop with and the other for production because it's easier to just copy one mdb file over another with Access. Funny thing... haha ha... I was looking at the development database while testing my code on the production one so there IS NO record 41 and up because that information wasn't published yet... my god I can't wait until I get the new CMS system in place...

Reply With Quote
  #3  
Old January 2nd, 2003, 01:03 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,173 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 24
It it makes you feel any better, I spent the last two days trying to get my first Linux terminal server (www.ltsp.org) working. I did everything the instructions said but my thin client wouldn't boot and connect to the server. I checked and rechecked everything. I searched the web. I tried different NIC cards. I swore. I threatened the machine.

Turns out the boot floppy had a cyclic redundancy error. AARGH!

Fifteen minutes later everything worked like a charm...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Access Fails to Recognize Valid SQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway