Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Language in access
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Language in access

 Post Reply Post Reply Page  12>
Author
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Topic: Language in access
    Posted: 11 December 2003 at 1:35am

Hi

I have a weird experience with following sql command:
strCmd = "SELECT * FROM tblSomething WHERE Lang = 'nl' ORDER BY Something_ID DESC"

Previous command will work, but if I change Lang to Language, it won't work anymore
strCmd = "SELECT * FROM tblSomething WHERE Language = 'nl' ORDER BY Something_ID DESC"

Off course I change this in my db too

Does anyone know why this is, and how I can solve it? Coz I really wanna use the word Language

Back to Top
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 2:16am

strCmd = "SELECT * FROM tblSomething WHERE [Language] = 'nl' ORDER BY Something_ID DESC"


 Try that

 

Lee

Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 2:26am
thanks, that works!

Is 'language' a reserved word or something?
Back to Top
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 2:33am

Ja, it's a VS reserved word, at least as far as I know.

You can set a documents language using it. Both Lang and Language are used.



Edited by Leeb65
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 5:31am

MSDN's list of reserved words

access absolutely sucks in that it is waaaay too picky with column names.. SQL Server is much much much more forgiving.. and if you are used to SQL Server, just wrapping all the Access columns in [ ]'s solves 100% of those problems

Contribute to the working anarchy we fondly call the Internet
Back to Top
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 5:35am
Good tip MorningZ, although I only ever use SQL Server now.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 10:08am

Have you tried XML?  I'm in luv with XML now.

BTW, I also use SQL, since the loads of probs I had with Acces.

Gone..
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 10:51am

i wouldnt fall too in love with XML.. its usefull in a few situations, but the lack of relationships and lack of a true query language is a MAJOR shortcoming

as for Access vs SQL.. Access works fine for any site with low traffic as long as its coded properly (mainly properly closing/disposing of threads to the database).. it is enough to get the job done

Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.