I am been trying to figure this out for a while now and I have not found a solution. I'm sure it will something simple, but I want to move ahead with the project so I will ask the smart people of this list.
-I have a DB field that lists table names. Using ASP I tell it
Step_table_name = (Step_List.Fields.Item("Table_Name"
.Value)
-Then try to use that table name to pull data out from that table
<%=(Step_Table_Name.Fields.Item("Status"
.Value)%>
-The field for the table name on the DB is set as "varchar" so when I run the page ASP sees the table name as
'tblIncoming_Clean'
-So when I have
<%=(Step_Table_Name.Fields.Item("Status"
.Value)%>
-It sees it as
<%=('tblIncoming_Clean'.Fields.Item("Status"
.Value)%>
-I need to get rid of the single quotes.
-I tried doing a trim but when I trim it trims the "t" and the "n" skipping the single quotes
-This is what the error looks like in case I am intrepreting it wrong
Microsoft VBScript runtime (0x800A01A8)
Object required: 'tblIncoming_Clean' /spectra/TMP2phbel43ls.asp, line 181
-Line 181 is
<%=(Step_Table_Name.Fields.Item("Status"
.Value)%>
It is seeing tblIncoming_clean as a separate object instead of putting it together and using it as <%=(tblIncoming_Clean.Fields.Item("Status"
.Value)%>
I created the recordset for this on the page so it shouldn't be because it is not there.
Any suggetions are extemely appreciated if anyone would like to help.
Thank You
-I have a DB field that lists table names. Using ASP I tell it
Step_table_name = (Step_List.Fields.Item("Table_Name"
-Then try to use that table name to pull data out from that table
<%=(Step_Table_Name.Fields.Item("Status"
-The field for the table name on the DB is set as "varchar" so when I run the page ASP sees the table name as
'tblIncoming_Clean'
-So when I have
<%=(Step_Table_Name.Fields.Item("Status"
-It sees it as
<%=('tblIncoming_Clean'.Fields.Item("Status"
-I need to get rid of the single quotes.
-I tried doing a trim but when I trim it trims the "t" and the "n" skipping the single quotes
-This is what the error looks like in case I am intrepreting it wrong
Microsoft VBScript runtime (0x800A01A8)
Object required: 'tblIncoming_Clean' /spectra/TMP2phbel43ls.asp, line 181
-Line 181 is
<%=(Step_Table_Name.Fields.Item("Status"
It is seeing tblIncoming_clean as a separate object instead of putting it together and using it as <%=(tblIncoming_Clean.Fields.Item("Status"
I created the recordset for this on the page so it shouldn't be because it is not there.
Any suggetions are extemely appreciated if anyone would like to help.
Thank You