CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 How to automatically run update query

Print topic Send  topic

Author Message
tulnetdotcom

Posts: 26
Posted: 09/21/2004, 1:45 AM

I have MS Access database which contains one update query.
I want to run update query automatically when database is accessed/started by user.

Is it possible? How to do that?


Thanks and regards,
View profile  Send private message
GeorgeS

Posts: 206
Posted: 09/21/2004, 11:43 PM

Yes, almost the same way you'd do it in Access:
<%
Dim CN
Set CN = Server.CreateObject("ADODB.Connection")
CN.Open = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\db\your DB.mdb;Persist Security Info=False"
CN.Execute("gryInsertClientOrder") ' in " " are the names of your queries
CN.Execute("gryUpdateTrackNum")
CN.Execute("gryUpdateProdQTY")
CN.Close
Set CN = Nothing %>

Of course, you'll need write the condition statement O:).

_________________
GeorgeS
View profile  Send private message
tulnetdotcom

Posts: 26
Posted: 09/25/2004, 10:23 PM

Thanks GeorgeS,
I really appreciate your help.

Thanks.
View profile  Send private message

Add new topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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