» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2006, 03:06 PM
bexter bexter is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bexter is on a distinguished road
Default Record set problem in ASP

I'm having trouble finding a specific Record in my record set

I've tried using the

recordset.find( ) function (example)
.
.
.

rsProfile.Find ("[Login]" = Session("UserID"))
.
.
.

Where Login is the name of a field in my database and
I'm triing to match it to my session ID

but I keep getting this error:

Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

If anyone could help I would appreciate it -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-15-2006, 03:07 PM
prestor prestor is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
prestor is on a distinguished road
Talking

Hi bexter

I think you might be coming at the problem from the wrong angle. It would be better to build your sql query so that it returns only one record rather than a bunch of records. You can then test whether the the EOF (end of file) property is true for the recordset. If true then nothing was pulled from the database, if false then you have a match and the user exists.

Your SQL statement would look something like this:

sql = "SELECT fieldname1, fieldname2 FROM tablename WHERE Login = '"&Session("UserID")&"'"

Have a good day -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
stored procedure creating problem? Wumchi MySQL Forums 1 11-23-2006 04:57 AM
DNS Historical Facts servomapper64 General Talk 1 08-25-2006 07:33 AM
next and previous record from table lucky7 PHP Programming and Tips 3 08-19-2006 11:22 AM
tell me my problem plz gladiator ASP forums and Tips 1 08-14-2006 02:18 PM
Problem in Building my own Forum johny MySQL Forums 1 12-07-2005 07:40 AM


All times are GMT. The time now is 01:55 AM.