Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with refreshing a cursor?
Message
From
04/06/2004 00:10:10
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with refreshing a cursor?
Miscellaneous
Thread ID:
00909813
Message ID:
00909813
Views:
41
I have an order entry form that calls a another form to allow a user to put a deposit on their account. When they come back from the second form, I want to update the first form with that information. It doesn't seem to be working.

This is the code that updates the despoit amount on the customer record:

UPDATE customers SET deposit = customers.deposit+cash_t.applied,lastdate = postdate,lastpay = ;
postdate WHERE customers.custno = ALLTRIM(cash_t.custno)

When I debug it, it appears to work fine and I can even browse the table and the updated amount is there.

Here is the code that I am using to update the screen:

SELECT deposit FROM customers INTO CURSOR deposit_view WHERE custno = combocomp.custno
THISFORM.pageframe1.page1.txtdeposit.VALUE = THISFORM.pageframe1.page1.txtdeposit.VALUE + deposit_view.deposit

The problem is that the deposit_view.deposit field still contains the value of customers.deposit BEFORE the table was updated.

What am I missing?? Please help.

Randy Wessels
Next
Reply
Map
View

Click here to load this message in the networking platform