Link to home
Create AccountLog in
Avatar of Mark Drelinger
Mark DrelingerFlag for United States of America

asked on

error in code - I think its vb . I can't figure out what character I'm missing.

in a redirect code I am getting an end of line error... any help ?

MM_editRedirectUrl = "ContactManagementActivityEditAlert.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "var_SaleCall_ID=" & rsSaleCallDataViewOnly.Fields.Item("ID").Value & "&varCustNumber=" & rsSaleCallDataViewOnly.Fields.Item("JDISCustNumber").Value & "&var_Table_ID=" & rsSaleCallDataViewOnly.Fields.Item("Customer_Table_ID").Value%>"
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Try this:
MM_editRedirectUrl = "ContactManagementActivityEditAlert.asp?<%= Server.HTMLEncode(MM_keepNone)%> & "=" & MM_joinChar(MM_keepNone) & "&var_SaleCall_ID=" & rsSaleCallDataViewOnly.Fields.Item("ID").Value & "&varCustNumber=" & rsSaleCallDataViewOnly.Fields.Item("JDISCustNumber").Value & "&var_Table_ID=" & rsSaleCallDataViewOnly.Fields.Item("Customer_Table_ID").Value"
Avatar of Mark Drelinger

ASKER

I think we're getting closer - I now have this error :
"Unterminated string constant"
I missed a quotation mark after %>:

MM_editRedirectUrl = "ContactManagementActivityEditAlert.asp?<%= Server.HTMLEncode(MM_keepNone)%>" & ...
same error....
Unterminated string constant
/WebApps2.0/ContactManagementActivityEdit2.asp, line 92, column 95

MM_editRedirectUrl = "ContactManagementActivityEditAlert.asp?<%= Server.HTMLEncode(MM_keepNone)%>" & "=" & MM_joinChar(MM_keepNone) & "&var_SaleCall_ID=" & rsSaleCallDataViewOnly.Fields.Item("ID").Value & "&varCustNumber=" & rsSaleCallDataViewOnly.Fields.Item("JDISCustNumber").Value & "&var_Table_ID=" & rsSaleCallDataViewOnly.Fields.Item("Customer_Table_ID").Value"
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Your answer led me in the right direction.  It wasn't perfect, but it was damn close.  Thanks for the help.