Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Rows-Perplexed
Message
 
 
To
09/06/2006 11:25:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01128125
Message ID:
01128145
Views:
24
Rich,

Are you using data buffering? If so you need to run a TableUpdate() before the changes will be committed to the table.

this.Requery() would only work if the insert is happening from inside a method of the listbox. If you are doing the insert from some other method you'll need to use the correct reference to that control ala thisform.lstCustomer.Requery()

>Thanks for the quick response, but am still perplexed. I successfully add a row to a free table, and I see the entry in my listbox. Then I "select" it from the listbox. It then does a LOCATE on the table, and it DOESN'T find it in the table (even though it's there). As I said, if I exit the app and come back in, it finds it ok.
>feel so dumb to be asking what probably is such a basic question.
>I tried putting in this.requery() after the record was saved but got an error message.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform