Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get the right record to show?
Message
 
 
To
15/02/2008 15:14:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01293068
Message ID:
01293070
Views:
19
>Help!
>
>There's something I'm missing in getting a teensy form to refresh when I'm adding a new record.
>
>My form has a few fields -- the first of which is a combo box to select the record to display. (It has a rowsourcetype of 6, with rowsource showing two fields from my table).
>
>I also have a button which says "add new record". This button adds a blank record. (Right now, that's all it does)
>
>What I'd like to have happen is that this blank record then populates the screen. I've been unable to get this to occur. Instead, I get the record that had been the last record.
>
>What else should I be adding into the Click method of the command button? This.parent.refresh is of no help.

If your controls are bound to your table fields, then adding a new record and doing thisform.refresh() should work. Unless something is changing a record pointer somewhere.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform