CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Counting Number Of Times Record Is Displayed

Print topic Send  topic

Author Message
mbennie
Posted: 02/01/2002, 12:05 PM

How do I keep a count of the number of times a record is displayed in a grid form? Using ASP.
Nicole
Posted: 02/04/2002, 4:29 AM

Hello,
add special field to the table e.g. show_count and increase it each time record is displayed. It could be done in BeforeShow event. Sample code:
cn.execute("update table_name set show_count= show_count + 1 where primary_key field=" & ToSQL(fldprimary_key_field, "Number"))
Erdal
Posted: 01/30/2003, 10:43 AM

this code updated all records why ?

DBSALES.Execute("update Message_Box set counter = counter + 1" &_
"where message_id=message_id")

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.