|
Excellent idea. I don’t know why I didn’t think of that. Thank you.
-----Original Message-----
Try this
Use a direct DBMS for your SQL for this
[Home Address] syntaxed as such should work
eg SELECT * FROM tbl WHERE [Home Address] = 'test';
HTH Niall
-----Original
Message----- The problem here is that I didn’t create the table. If I really need to change the field name I’ll have to investigate and find everywhere it’s referenced. IF that’s what I have to do, that’s what I have to do, I guess.
-----Original Message-----
Barbara,
Is there a reason that the field NAME contains a space? If not, then just change it to "HomeAddress". I'm not sure how you put a space in the column name, but my guess is that standard SQL will interpret it as an alias... i.e.
SELECT home address FROM sometable
is the same as saying: SELECT home AS address FROM sometable
The "address" is actually being used as an alias.
So in your update statement: UPDATE sometable SET home address='somevar' WHERE someid=xx
SQL will complain that the syntax is wrong, because you cannot use an alias.
oh, and if you put quotes around it... it will be interpreted as a string so: SELECT 'home address' FROM sometable
will just give you a bunch of results with 'home address' in them.
Hope that helps!
Jim Kass
/color>/fontfamily>________________________________________________________________________TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf________________________________________________________________________TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf |
Title: Message