Quantcast
Viewing latest article 4
Browse Latest Browse All 16

Re: Displaying only active records

stabes

Thanks Rion.

Looking inside the DB I notice that the value of the column IsApproved is actually defined as being either True or False - not simply text "IsApproved".
I suppose that would explain why the number of active records returned is zero :-) Back to the drawing board.

Thanks again for your assistance. Appreciated.

Martin

I addressed this in my earlier response (as I thought that using an actual "IsApproved" string was bizarre and that your field was likely a bit and not a VARCHAR). You just need to compare it to 1 :

SELECT COUNT(*) FROM aspnet_Membership WHERE IsApproved = 1


Viewing latest article 4
Browse Latest Browse All 16

Trending Articles