473,324 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Error (0x800A0401) Expected end of statement

Dax
Hi,
during the creation of an HTML page using asp variable I have this
problem:
Microsoft VBScript compilation (0x800A0401) Expected end of statement
/asp/pages/connect1_1.asp, line 27, column 35
strtable = strtable & "<tr valign="top">" &

The code is the following:
dim strtable
strtable = "<table border=1 width=100% >"

strtable = strtable & "<tr valign="top">" &
"<td width="51" bgcolor="#0488EC">CODICE</td>" &
"<td width="51" bgcolor="#0488EC">PRODOTTO</td>" &
"<td width="51" bgcolor="#0488EC">QTA MASSIMA</td>" &
"<td width="51" bgcolor="#0488EC">QTA RICHIESTA</td>" &
"</tr>"

How can I put inside an ASP variable HTML code?

Thanks in advance.
Dax

Mar 20 '06 #1
3 7826
Dax schreef:
Hi,
during the creation of an HTML page using asp variable I have this
problem:
Microsoft VBScript compilation (0x800A0401) Expected end of statement
/asp/pages/connect1_1.asp, line 27, column 35
strtable = strtable & "<tr valign="top">" &

The code is the following:
dim strtable
strtable = "<table border=1 width=100% >"

strtable = strtable & "<tr valign="top">" &
"<td width="51" bgcolor="#0488EC">CODICE</td>" &
"<td width="51" bgcolor="#0488EC">PRODOTTO</td>" &
"<td width="51" bgcolor="#0488EC">QTA MASSIMA</td>" &
"<td width="51" bgcolor="#0488EC">QTA RICHIESTA</td>" &
"</tr>"

How can I put inside an ASP variable HTML code?

Thanks in advance.
Dax

Try this:

strtable = strtable & "<tr valign=""top"">" &_
"<td width=""51"" bgcolor=""#0488EC"">CODICE</td>" &_
"<td width=""51"" bgcolor=""#0488EC"">PRODOTTO</td>" &_
"<td width=""51"" bgcolor=""#0488EC"">QTA MASSIMA</td>" &_
"<td width=""51"" bgcolor=""#0488EC"">QTA RICHIESTA</td>" &_
"</tr>"
d.
Mar 20 '06 #2
Dax
Nothing to do

Mar 20 '06 #3
Dax schreef:
Nothing to do

Then you have to redefine your question.

The error you get is due to embedding double quotes inside your string,
so I double-upped your quotes. You also forgot the &_ to concatenate
multiple lines of code.

d.
Mar 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lisa | last post by:
can someone tell me what is wrong with this query? I've tried every combo that I can think of - adding &,"", "'", ) everywhere I can think of and I keep getting an 'Expected end of statement...
7
by: Jack | last post by:
Hi, I am trying to test a sql statement in Access which gives me the error as stated in the heading. The sql statement is built as a part of asp login verification, where the userid and password...
9
by: Richard Gutery | last post by:
I have this piece of code in an ASP page: replace (strRootDir, "\", "/", -1) When I run the script I get: Microsoft VBScript compilation (0x800A0414) Cannot use parentheses when calling a Sub ...
8
by: pagantom | last post by:
Hello. newbie here. need help. here's the text, compile errors are below. thanks class date { private: char *mo; int day, yr; public:
2
by: ddddd | last post by:
CREATE PROCEDURE PART6(IN a FLOAT, IN b FLOAT, OUT retval FLOAT) BEGIN retval = a * b END The above procedure creation statement throws error saying DB21034E The command was processed as...
9
by: Trent | last post by:
Here is the error while using Visual Studio 2005 Error 1 error LNK2019: unresolved external symbol "void __cdecl print(int,int,int,int,int,int,int,int)" (?print@@YAXHHHHHHHH@Z) referenced in...
1
by: neenaprasad | last post by:
I created a temporary table like this. It showed an error like this Microsoft VBScript compilation (0x800A0401) Expected end of statement /neena/BestAgentsList.asp, line 334, column 16 SqlStr =...
2
by: kya2 | last post by:
I am not able to create following store procedure. CREATE PROCEDURE DBSAMBA.InsertDeleteBatch(OUT norows INT ) RESULT SETS 1 LANGUAGE SQL BEGIN part1 DECLARE TOTAL_LEFT INT DEFAULT 0; ...
3
by: Hill | last post by:
This is an simple map, just an exercise. Who can help me fix this compile issue?Thanks in advance. #include <string> #include <vector> #include <iostream> using std::vector; using std::string;...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.