473,387 Members | 1,899 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,387 software developers and data experts.

Why isn't the column name specified in code found on the table?

Problem URL - http://projects.zanalysts.com/arivie...play.asp?ID=11

I'm using Access as the "database".

I get this error in the above URL:

ADODB.Fields error '800a0cc1'
Item cannot be found in the collection corresponding to the requested
name or ordinal.
/ariviewer/display.asp, line 498

I know it's telling me that it cannot find the column name on the
table.

Here is line 498:

If tables(tableID) <"Husqvarna Equpment" Then
Response.Write("<td>" & Recordset1.Fields.Item("Day").Value & "</
td>")
Response.Write("<td>" & Recordset1.Fields.Item("Week").Value & "</
td>")
Response.Write("<td>" & Recordset1.Fields.Item("Month").Value &
"</td>")
Else
Response.Write("<td>" & Recordset1.Fields.Item("Price").Value &
"</td>")
End If

However if you go to this URL - http://projects.zanalysts.com/ariviewer/test.asp
- it displays the table name followed by the column names for this
table delimited by "-".

-Husqvarna Equipment-
-Equipment Description-
-ID-
-Price-

Unless my eyes are totally deceiving me, there is a column called
"Price" in the Husqvarna table. The code below is used to display the
column names.

For Each objTable in objADOXDatabase.Tables
If objTable.Type = "TABLE" then
tables(i) = objTable.Name
If tables(i) = "Husqvarna Equipment" Then
Response.Write("-" & tables(i) & "-" & "<br>")
For Each objColumn in objTable.Columns
Response.Write("-" & objColumn.Name & "-" & "<br>")
Next
End If
i = i + 1
End If
Next

Can someone please help me identify what I am missing?

Thank you!
Nov 25 '07 #1
1 2299
On Nov 25, 2:53 pm, Big Moxy <bigm...@gmail.comwrote:
Problem URL -http://projects.zanalysts.com/ariviewer/display.asp?ID=11

I'm using Access as the "database".

I get this error in the above URL:

ADODB.Fields error '800a0cc1'
Item cannot be found in the collection corresponding to the requested
name or ordinal.
/ariviewer/display.asp, line 498

I know it's telling me that it cannot find the column name on the
table.

Here is line 498:

If tables(tableID) <"Husqvarna Equpment" Then
Response.Write("<td>" & Recordset1.Fields.Item("Day").Value & "</
td>")
Response.Write("<td>" & Recordset1.Fields.Item("Week").Value & "</
td>")
Response.Write("<td>" & Recordset1.Fields.Item("Month").Value &
"</td>")
Else
Response.Write("<td>" & Recordset1.Fields.Item("Price").Value &
"</td>")
End If

However if you go to this URL -http://projects.zanalysts.com/ariviewer/test.asp
- it displays the table name followed by the column names for this
table delimited by "-".

-Husqvarna Equipment-
-Equipment Description-
-ID-
-Price-

Unless my eyes are totally deceiving me, there is a column called
"Price" in the Husqvarna table. The code below is used to display the
column names.

For Each objTable in objADOXDatabase.Tables
If objTable.Type = "TABLE" then
tables(i) = objTable.Name
If tables(i) = "Husqvarna Equipment" Then
Response.Write("-" & tables(i) & "-" & "<br>")
For Each objColumn in objTable.Columns
Response.Write("-" & objColumn.Name & "-" & "<br>")
Next
End If
i = i + 1
End If
Next

Can someone please help me identify what I am missing?

Thank you!
Duh! I misspelled the table name in my code.
Nov 26 '07 #2

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

Similar topics

2
by: James Knowlton | last post by:
Hello, I'm just returning to MS SQL Server after two years of dealing with Sybase ASE. I need to drop a column, using the alter table command. I keep getting an error indicating that a...
4
by: Isaac Dealey | last post by:
I've been searching for hours and hours and can't find what I need. I'm creating a scripted web application that's designed to manage multiple databases (MS SQL Server, MS Access, Oracle,...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
11
by: surya | last post by:
hello sir, i have a table emp ,it has three fields one is empno int ,second is ename varchar(20). and last is salary , emp empno ename salary ----------- ------------...
0
by: JDMils | last post by:
I am having trouble finding the AutoNumber field of my database with this code. The code is used to replicate a specific table, reproducing all columns including indexes and Primary Keys (there is...
1
by: christianlott1 | last post by:
I want to provide users with an interface to create a custom merge (all in Access, not Word). User will put in a set of brackets ("<>") in a memo field and when they click the merge button it will...
2
by: Rahul B | last post by:
Hi. I have created a table CREATE TABLE testschema.player ( country VARCHAR(80) NOT NULL, posn VARCHAR(2) not null ) /
1
by: Frank Swarbrick | last post by:
We're trying to take advantage of the new ROW CHANGE TIMESTAMP option. Here is a simple table: CREATE TABLE "ACCTASGN"."NUMBER_STATUS" ( "STATUS_CODE" CHAR(1) NOT NULL , "STATUS_DESCRIPTION"...
4
tjc0ol
by: tjc0ol | last post by:
Hi guys, I'm a newbie in php and I got error in my index.php which is: 1054 - Unknown column 'p.products_id' in 'on clause' select p.products_image, pd.products_name, p.products_id,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.