Print Page | Close Window

.FindRow() fails to return a Row

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=7203
Printed Date: 23 November 2024 at 9:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: .FindRow() fails to return a Row
Posted By: Shawshank
Subject: .FindRow() fails to return a Row
Date Posted: 21 May 2007 at 8:34pm
I'm passing the function FindRow a valid Record yet it fails to return a Row. How could this be?
 
    For Each Record In ReportDrvs.Records
        
         Set r = ReportDrvs.Rows.FindRow(Record)
            
         If (r Is Nothing) Then Err.Raise JMS_FIND_ROW_ROW_NOT_FOUND, , "JMS_FIND_ROW_ROW_NOT_FOUND"
            
         r.Selected = True
            
         Exit For
            
    Next Record
Obviously this code means a valid Record is being passed to FindRow. Yet, I do not get a valid Row in return and r = Nothing. How can this be?
 
Shawshank



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net