Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query doesn't return up to date data first time
Message
From
12/02/2008 08:21:09
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
12/02/2008 08:05:50
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01291747
Message ID:
01291751
Views:
10
Frank,

do you use buffering? Are you shure that the INTO clause will nothing mix up?

Maybe you provide the full SELECT command.

Agnes

>Hi,
>
>I have a query that I use to build up the data for a report. The process is that user 1 creates a record (an invoice in this case), then user 2 creates a record in another table related to the record created by user 1 (a receipt against the invoice). When creating the receipts, the invoice is displayed on user 2's screen. A receipt can be made against an old invoice and the new one at the same time.
>
>When the receipt is saved I run a query against the source tables to produce the receipt. The majority of times, the receipt only pulls the data from the old invoice. This made me think there is some kind of caching going on as the users are on different workstations. So I tried SET REFRESH TO 0, -1 before running the query, but that had no effect. I also ensured the hard disk cache was switched off, that also had no effect. However, grasping at straws, I ran the query twice and 29 times out of 30 this works.
>
>
FOR i = 1 to 2
>   SELECT ....
>ENDFOR
>
>Can anyone think of anything else to try?
>
>Thanks,
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform