Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

runtime string constant error

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
Can someone check this code and tell me why I'm getting "unterminated string constant"?
dim varlocation
varlocation = lstLocation.getValue

lstLocation is a listbox dtc accessing a recordset.

also I am passing the information via a form and submit button with the following onClick:
onClick=&quot;location='displayJobs.asp?location=<%=varlocation%>'&quot;
Is this correct?
 


frogggg,

Try this:

onClick=&quot;document.location='displayJobs.asp?location=<%=varlocation%>'&quot;
 
It doesn't work.
The debugger is highlighting the varlocation lines of code.
 
check out thread thread333-15240

do you have backslashes (\) in your location values?
 
Well, I stopped getting that error message for some reason, but now the value of the listbox is 'undefined'.
Why would that be?
p.s. I have no backslashes.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top