Re: How can i get the "true" name of an aliased field?
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 13 Nov 2007 07:05:35 -0500
Patrick wrote:
Does any anyone know how can I get the real name of a field when using
aliases ?
I'm opening an ADO recordset with an SQL string which goes something
like
"SELECT Surname & ' ' & Name as Operator FROM People"
I'm doing this mainly for descriptive reasons, but I also need the
true source of the field ( = Surname & ' ' & Name).
DAO used to have the SourceField() method, which is not supported by
ADO.
Is there an alternative ?
Not that I've ever seen. You will need to store this information somewhere
in your application. You could even make it part of your sql statement:
SELECT Surname & ' ' & Name as Operator, " & _
"'Surname & Name' As OperatorSource ... "
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- References:
- How can i get the "true" name of an aliased field?
- From: Patrick
- How can i get the "true" name of an aliased field?
- Prev by Date: Re: How can i get the new vaule of a counter field?
- Next by Date: Re: How to create a temporary Primary Index for an ADO recordset
- Previous by thread: How can i get the "true" name of an aliased field?
- Next by thread: Re: How can i get the "true" name of an aliased field?
- Index(es):
Relevant Pages
|
|