Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 04-20-2005, 02:53 PM Tricky problem !
VegaLA's Avatar
Skilled Talker

Posts: 64
Trades: 0
Hi all,
just come across a problem with the site I am building for the office. I have a asp page that lists a range of projects and if the user clicks on one it will take them to a page dedicated to that project with data pulled in from a view on SQL serv er 2000. From this page the user can add data related to that project however, if the project has not had any data added to it at that time this error message displays...

"Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/test-site1/Intranet/info.asp, line 123"

Which, to be honest, is expected as there is'nt any data for that particular project, the user has yet to add it so how do i get around this annoying little problem ? I am using DWMX to create the pages.

Thanks in advance,
Mitch....
VegaLA is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-20-2005, 03:02 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Tricky ??

Code:
if objRS.eof or objRS.bof then 
    ' do this because there are no records
else
    ' do this because there is at least 1 record
end if
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Tricky problem !
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21391 seconds with 12 queries