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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 10th, 2002, 02:20 PM
bnow's Avatar
bnow bnow is offline
Charge into the Knight
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Orlando, FL
Posts: 276 bnow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Exclamation Querying Access gives me an Syntax error...please help

Here is my sql statement and error message:

PHP Code:
 SELECT FROM materials LEFT OUTER JOIN scndry_authors ON 
materials
.mat_rec_id=scndry_authors.mat_rec_id WHERE 
materials.245_title_statement 
='STUDY GUIDE TO ACCOMPANY 
BIOLOGY.'


WarningInvoke() failedException occurredSourceMicrosoft 
OLE DB Provider 
for ODBC Drivers Description: [Microsoft][ODBC 
Microsoft Access Driver
Syntax error in query 
expression 
'materials.245_title_statement ='STUDY GUIDE TO 
ACCOMPANY BIOLOGY
.''in 
C
:tentwwwroottestarchives_catalogresult.php on line 71 


Can I have a field name start with a number?
__________________
Every man is a fool for at least five minutes every day; wisdom consists of not exceeding the limit.-- Elbert Hubbard

Reply With Quote
  #2  
Old December 12th, 2002, 07:16 AM
rowshi's Avatar
rowshi rowshi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 9 rowshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to rowshi
It would seem that you can't start a field name with a number. I just tried it and it gave me a syntax error just like you got. When I changed the number to a letter, there was no error.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Querying Access gives me an Syntax error...please help


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 1 hosted by Hostway