in reply to Record Count

Perl and ADO work pretty much the same way as other ADO functions work. Your code needs a few other things to make it work.. you may be forgetting them. (this is untested code, but it basically correct).

Basically you need to make sure that: That said, there are a few things that you need to check for in your code:

$RS = $Conn->Execute("SELECT * FROM affiliate where Affiliate_Number=" +.$an); if(! $RS->BOF ) #Beginning of file, as in returned no records { $RS -> movelast; $RS -> movefirst; $RS -> Recordcount; #This may be a nitpick point, but MoveLast, MoveFirst, #and RecordCount are all case sensitive. $sql="update affiliate set Affiliate_Refferals=Affiliate_Refferals+1 w +here Affiliate_Number=".$an; }else{ &error('bad_affiliate_number'); #I don't know what you are trying to do with this, but hey. }
Also, check on the following: I hope that clears up some of the confusion with ADO.