I was recommended to come here for assistance, so here goes (I'm still somewhat new to asprunner).
I have a registration system with a User table that has Job Listings Table related 1:M. When a user registers, the Reg_Status is set to "Pending" until an admin/acct manager sets it to Disabled or Active.
I have a piece of custom code that I use in the List Page as follows:
if ucase (rs("Reg_Status"))="PENDING" then
strValue = "<font color=brown>" & strValue & "</font>"
elseif ucase (rs("Reg_Status"))="DISABLED" then
strValue = "<font color=red>" & strValue & "</font>"
else
strValue = "<font color=green>" & strValue & "</font>"
end if
This works well and I have no errors. I was/am a little surprised that it shows up on the VIEW page, but that may be a bonus (I would have thought they were mutually exclusive).
Anyway I digress.
When a user clicks on the VIew link to see his/her Job Listings, I get this error:
Item cannot be found in the collection corresponding to the requested name or ordinal.
/aspr/include/commonfunctions.asp, line 577
Viewing the code at line 577 (or there abouts), it has this code:
if ucase (rs("Reg_Status"))="PENDING" then
strValue = "<font color=brown>" & strValue & "</font>"
elseif ucase (rs("Reg_Status"))="DISABLED" then
strValue = "<font color=red>" & strValue & "</font>"
else
strValue = "<font color=green>" & strValue & "</font>"
end if
So this is the code that I have in Custom View, but I don't understand why I get this error.
I believe it may be because I am displaying the Parent record (Master Table info-List) on the child page when viewing???
How can I fix this. I really would like to be able to display the status in the method above.
Thanks
ps: I hope this is enuff info.