Jun 22, 2001 #1 Hiciano IS-IT--Management Jun 22, 2001 2 DO Hi. I am trying to use an alias field in my WHERE clause but I get an error. The idea is this: SELECT name,lastname,socsecid AS id FROM Tablex WHERE id=100 Is this correct ? Thanks !
Hi. I am trying to use an alias field in my WHERE clause but I get an error. The idea is this: SELECT name,lastname,socsecid AS id FROM Tablex WHERE id=100 Is this correct ? Thanks !
Jun 22, 2001 #2 tlbroadbent MIS Mar 16, 2001 9,982 US I don't believe that is allowable. Terry http://members.home.net/tlbroadbent/prog.htm Neither success nor failure is ever final. -Roger Babson Upvote 0 Downvote
I don't believe that is allowable. Terry http://members.home.net/tlbroadbent/prog.htm Neither success nor failure is ever final. -Roger Babson
Jun 22, 2001 #3 CosmoKramer Programmer May 29, 2001 1,730 US Terry's right...The alias acts only as a column header.... Upvote 0 Downvote
Jun 22, 2001 Thread starter #4 Hiciano IS-IT--Management Jun 22, 2001 2 DO Guys, Thanks a lot for your answers. The thing is that Jet answers the following with the Alias name and not the real name of the field. dbData.Recordset.Fields(1).Name How can I make Jet to give me back the real name of the field and not the alias ? Upvote 0 Downvote
Guys, Thanks a lot for your answers. The thing is that Jet answers the following with the Alias name and not the real name of the field. dbData.Recordset.Fields(1).Name How can I make Jet to give me back the real name of the field and not the alias ?
Jun 22, 2001 #5 tlbroadbent MIS Mar 16, 2001 9,982 US I'm not exactly sure what you are getting at. You can remove the alias from the query. SELECT name,lastname,socsecid FROM Tablex WHERE socsecid=100 Terry http://members.home.net/tlbroadbent/prog.htm "I'm not dumb. I just have a command of throughly useless information." - Calvin, of Calvin and Hobbes Upvote 0 Downvote
I'm not exactly sure what you are getting at. You can remove the alias from the query. SELECT name,lastname,socsecid FROM Tablex WHERE socsecid=100 Terry http://members.home.net/tlbroadbent/prog.htm "I'm not dumb. I just have a command of throughly useless information." - Calvin, of Calvin and Hobbes