Hi list,
I get this error message when run this script:
-------
Do while Not RS.EOF
dim tbl_array(5)
tbl_array(0) = "fg_lcb"
tbl_array(1) = "fg_r9"
tbl_array(2) = "pp"
tbl_array(3) = "fg_r3a"
tbl_array(4) = "fg_sheet"
tbl_array(5) = "fg_slitter"
for i=0 to 5
Query1 = "SELECT * from "&tbl_array(i)&" where serial ='"&RS("serial"&"' and weight='"&RS("weight"&"'"
Set RS1 = Conn.Execute(Query1)
If Not RS1.EOF then
got_rec = "YES"
machine = tbl_array(i)
exit for
end if
next
---------
The error message is:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'tbl_array'
/online/production/grn/grn_match.asp, line 75
line 75 == dim tbl_array(5)
If i run this script without the while loop, there is no error..
How to solve this..
Please help..
Thanks and Best regards,
Parameswari sellaparma
I get this error message when run this script:
-------
Do while Not RS.EOF
dim tbl_array(5)
tbl_array(0) = "fg_lcb"
tbl_array(1) = "fg_r9"
tbl_array(2) = "pp"
tbl_array(3) = "fg_r3a"
tbl_array(4) = "fg_sheet"
tbl_array(5) = "fg_slitter"
for i=0 to 5
Query1 = "SELECT * from "&tbl_array(i)&" where serial ='"&RS("serial"&"' and weight='"&RS("weight"&"'"
Set RS1 = Conn.Execute(Query1)
If Not RS1.EOF then
got_rec = "YES"
machine = tbl_array(i)
exit for
end if
next
---------
The error message is:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'tbl_array'
/online/production/grn/grn_match.asp, line 75
line 75 == dim tbl_array(5)
If i run this script without the while loop, there is no error..
How to solve this..
Please help..
Thanks and Best regards,
Parameswari sellaparma