|
|
#1 |
|
the admiral formerly known as overclocked
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2000
Location: Outside the mainstream
Posts: 5,922
|
Strange ASP problem
Ok, this is odd. I'm building an ASP app that calls on an Access database. In the database is a table called "grant". In my ASP page I have "Set rGrant = cConn.Execute ("SELECT * FROM grant")"
In this form, I get an error: Syntax error in FROM clause If I change "grant" to "grants" in the ASP page and in the Access database it work fine. Is "grant" something special in the world of ASP? -OC
__________________
But what is adulthood except a delayed end-run around our parents' better judgment? -- Peter Egan *cough* |
|
|
|
|
|
#2 |
|
Commander
![]() ![]() ![]() ![]() ![]() |
bah.. i can't find an exact reference on MSDN, but i'd venture to guess that yes, you stumbled on a reserved word. best to leave it at "grants" or better yet, prefix your tables, forms, queries, and objects with appropriate identifiers (ie, "grant" becomes "tblGrant" or "t_grant")
__________________
blurt blurt blurt |
|
|
|
|
|
#3 |
|
Commander
![]() ![]() ![]() ![]() ![]() |
Aha! We're right:
Code:
|
|
|
|
|
|
#4 |
|
the admiral formerly known as overclocked
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2000
Location: Outside the mainstream
Posts: 5,922
|
Thanks cheffy!
-OC |
|
|
|