Hide a row based on criteria (1 Viewer)

deanvilar

Registered User.
Local time
Today, 06:12
Joined
Mar 27, 2013
Messages
63
Help Guys ....

I need to hide a row in my report for example (in Detail Format event of the report):

If me.txtReleased = "YES" then
hide row
endif

thanks in advance.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 14:12
Joined
Feb 19, 2013
Messages
16,665
I would modify your source query to exclude records where txtReleased = "YES"
 

deanvilar

Registered User.
Local time
Today, 06:12
Joined
Mar 27, 2013
Messages
63
I did ... but the problem is that the query comes first to display the data and it cant fetch the value YES or NO generated from detail format event of the report.
 

deanvilar

Registered User.
Local time
Today, 06:12
Joined
Mar 27, 2013
Messages
63
I found it!!!!
if me.released = "YES" then
Cancel = True
end if
 

CJ_London

Super Moderator
Staff member
Local time
Today, 14:12
Joined
Feb 19, 2013
Messages
16,665
Excellent - you could rewrite as

Cancel=me.released = "YES"
 

Users who are viewing this thread

Top Bottom