I am tryin to display the value from this sql statement in a text box on the web page.
strSQL = "select sum(POVal1) from projects where project_code = '12345'"
objRst.Open strSQL,objConn,adOpenStatic
objRst.Close
However when i look at the text box it contains the select statement instead of...
Thank you all so much for your help, i am doing this as a favour for a girl at work and i'm not very familiar with coding. The top of the page is has
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<SCRIPT...
it converts the string representation of a number to its 32-bit signed integer equivalent. the error i get is
Microsoft VBScript runtime error '800a01a8'
Object required: ''
When i use the CLng function i get
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CLng'
Thanks for your repsonse, when i use that function i get the error type mismatch.
If i use System.Int32.Parse(STRINGNAME) i get Object required: '' error.
Any ideas what is wrong?
thanks for your help, i haven't used this before so i will show you what i have and could you explain how i can add that to the code you gave me?
txtPOVal1 = trim(Request.Form("txtPOVal1"))
txtPOVal2 = trim(Request.Form("txtPOVal2"))
txtPOVal3 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.