I agree with unicorn11. Also, try using a variable to store the value of Request.Form("custcode"). This would eliminate the confusion with internal quotation marks.
joeyh
try using this in your a href:
hyperlinktopage.asp?variable=<%variable%>
then on the page you linked to do this:
Request.Querystring("variable")
that should do what you want
joeyh
The mid did not work. I get a invalid procedure call or argument no matter what I use. I believe I going to give up because I do not think I can do it in VBScript. I can do it all day long in Visual Basic, but if anyone else has any suggestions, please let me know.
Thanks,
Joeyh
The mid did not work. I get a invalid procedure call or argument no matter what I use. I believe I going to give up because I do not think I can do it in VBScript. I can do it all day long in Visual Basic, nut if anyone else has any suggestions, please let me know.
Thanks,
Joeyh
Nick,
I haven't had a chance to try Clng, but I will and will post back here if it works or if it doesn't. Yes the field will always contain a space. What I am doing is developing an API to update a MS Access database. I have two tables. One table has fields:
Attach_id
Attachment
I have...
It's me again. I thought that I had solved my problem but I didn't. This is how the function looks.
Function Seperate(Field)
Field = Cstr(Field)
RSpace = InStr(Field, " ")
Field = Left(Field, RSpace - 1)
Seperate = Field
End Function
It gives me an error saying:
Invalid...
I need to know how to pull strings apart using asp. I come from a Visual Basic background but when I use the Visual Basic way, I get an error. Here is the script I am using:
Function Seperate(Field)
Field = Cstr(Field)
WhereSpace = InStr(Field, " ")
Field = Left(Field, WhereSpace...
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.