Ask a Question related to ASP, Design and Development.
-
my #1
Variable in the field name.
Hi All,
I have one question. Usually, we can get data from table
by using rst("userid") because we know the column name
userid. Now, I have a variable to hold the column name. I
want to get data value like this rst(var1). However, I got
an error message.
Thanks.
my
my Guest
-
Iterative Insert with Variable Field Name
Hello, Someone must have come across this already, I need help with this insert query I have. I have a form that has variables as such:... -
variable named field calculated from variable named fields
I have two form fields per line defined in a cfloop thusly: <cfloop index="i" from= "1" to= "100" Step="1"> <cfif isdefined("form.item_number_"... -
Display variable in text field
Here's the code: <input type="text" name="myDate" id="myDate" value="#strDate#"> Not sure why this doesn't work. Instead of the value of the... -
name of field is in variable: how to use in SQL?
Hi, The name of the field is in variable 'a'. How can i use it into SQL? This doesn't work: <% a="name" set obj =... -
Hidden field with variable problem
Here is the code: <SELECT NAME="email" style="font-family: Verdana; font-size: 10pt; " size="1"> <% DO WHILE NOT objRS.EOF strEmail =... -
Manohar Kamath [MVP] #2
Re: Variable in the field name.
What was the error message? Make sure that the variable does not contain any
leading/trailing spaces. A better idea is to do:
rst(Trim(var1))
Also, print out the variable and see if that field exists in the resultset.
--
Manohar Kamath
Editor, .netBooks
[url]www.dotnetbooks.com[/url]
"my" <mypeng4@yahoo.com> wrote in message
news:03ed01c34fd0$60fc1170$a401280a@phx.gbl...> Hi All,
>
> I have one question. Usually, we can get data from table
> by using rst("userid") because we know the column name
> userid. Now, I have a variable to hold the column name. I
> want to get data value like this rst(var1). However, I got
> an error message.
>
> Thanks.
> my
Manohar Kamath [MVP] Guest
-
Aaron Bertrand - MVP #3
Re: Variable in the field name.
What is the code? What is "var1"? What does the table structure look like?
What is the error message?
In case there's any doubt, some information is better than none. :-)
"my" <mypeng4@yahoo.com> wrote in message
news:03ed01c34fd0$60fc1170$a401280a@phx.gbl...> Hi All,
>
> I have one question. Usually, we can get data from table
> by using rst("userid") because we know the column name
> userid. Now, I have a variable to hold the column name. I
> want to get data value like this rst(var1). However, I got
> an error message.
>
> Thanks.
> my
Aaron Bertrand - MVP Guest



Reply With Quote

