Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 10th, 2004, 06:36 AM
Grievem Grievem is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Scotland
Posts: 16 Grievem User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to Grievem
Unhappy Reopening A Query !!!!

hi

I Need help I have a program which is to automate a batch job when a count reaches 0 the count is ain a view within the database my problem is refreshing the count

here is the code

with adoquery2 do
begin
adoquery2.close;
adoquery2.open;

if FieldByName('version').AsString = 'FINAL' then
begin
WriteLog( 'Sales Report has been set to FINAL' );
if int = 0 then
begin
if FieldByName('stores').AsString = '0'then
begin
if FieldByName('version').AsString = 'Latest' then
begin
if not ind then // program not ran
begin
RunProg('c:\updver.bat', 'c:\');
ind := True;
int := int + 1 ;
WriteLog( 'Sales Report has been set to FINAL' );
end; // if not ind then
end;
end;
end;


end;
adoquery2.Free;

any ideas why it is not refreshing the query !!!???

Reply With Quote
  #2  
Old November 10th, 2004, 06:52 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 5
Send a message via Yahoo to SilverDB
Lightbulb

Maybe the transaction is not yet commited

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Reopening A Query !!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT