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

 clearing a table....database engine

Print topic Send  topic

Author Message
ytoro
Posted: 10/29/2002, 3:30 PM

hi,
is there a way to completely clear a table of its content by a single click
CCS, Access and asp
thanks
ytoro

Thanks for the response
database engine MSAccess with jet 4.0
Nicole
Posted: 10/31/2002, 2:41 AM

Hello,
You should create button or link after clicking on that the drop table data will be done. I suggest you to pass any parameter in order to confirm the operation and execute drop data code in the page After Initialize event. Here is sample code:
if CCGetParam("drop") = true then
'open new connection
Dim conn
Set conn = New clsDBconnection_name
conn.Open
'execute custom query
conn.execute("delete from table_name")
'close connection
conn.Close
Set conn = Nothing
end if


   


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

Web Database

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.