Hi Every one
The Following is my code.It was working fine till yesterday, but the
same code gives error now.I don't know how to fix this.
I will appreciate if any one help me to come out of this problem.
Error Description
Error Type:
ADOX.Tables (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested
name or ordinal.
/dcpsc/edkt/demo/dckt_create.asp, line 52
My Code:
set objconn=Server.CreateObject("ADODB.Connection"
DSNtemp="FILEDSN=c:\InetPub\pscweb\psc1.dsn"
objconn.open DSNtemp
Set objADOXDatabase = Server.CreateObject("ADOX.Catalog"
Set objADOXDatabase.ActiveConnection = objconn
STR1=REQUEST("caseno"
str_flag="N"
For Each objTable in objADOXDatabase.Tables
if lCase(left(objTable.Name,2)) = "fc" then
if Trim(objTable.Name)=str1 then
str_flag="Y"
exit for
end if
end if
Next
if str_flag="N" then
objconn.Execute("CREATE TABLE " & str1)
objconn.Execute("ALTER TABLE " & str1 &" ADD COLUMN DOCKETNO VARCHAR
[50]"
objconn.Execute("ALTER TABLE " & str1 &" ADD COLUMN [DATE] varchar
[50] "
end if
str_flag1="N"
--------------------------------------------------
#####-- Error pOint----####
------------------------------------------------------
For Each objTable in objADOXDatabase.Tables(str1).Columns '###Err Ln##
if Trim(objTable.Name)="StoredFileName" then
str_flag1="Y"
end if
next
Thanks
Balachandar
Thank You
sbind77