I have a database connected to an asp.net web page. When I run this query:
"SELECT [Previous Amount] as Previous_Amount FROM [pensions]" it works fine. However, I want to apply a variable to the values that are being returned. The variable is stored in a session variable called My_CPI_session. I have tried all sorts of variations on the syntax:
"SELECT [Previous Amount] * " & My_CPI_session & "as Previous_Amount FROM [pensions]"
I get errors like 'the server tag is not well formed'.
I'd appreciate it if someone could let me know what I'm doing wrong. Thanks
clement: thanks, but that hasn't helped. The 'wildcard' is actually the multiplication symbol. I want to multipy the data I get from the database by my variable.
"SELECT [Previous Amount] as Previous_Amount FROM [pensions]" it works fine. However, I want to apply a variable to the values that are being returned. The variable is stored in a session variable called My_CPI_session. I have tried all sorts of variations on the syntax:
"SELECT [Previous Amount] * " & My_CPI_session & "as Previous_Amount FROM [pensions]"
I get errors like 'the server tag is not well formed'.
I'd appreciate it if someone could let me know what I'm doing wrong. Thanks
clement: thanks, but that hasn't helped. The 'wildcard' is actually the multiplication symbol. I want to multipy the data I get from the database by my variable.