Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a new record
Message
 
To
28/10/1997 15:08:01
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00057062
Message ID:
00057085
Views:
29
>The way I used to add a new record to a table was the user would fill in the fields, and then press SAVE. The system would then APPEND BLANK and REPLACE.
>
>By using .ControlSource, however, I have to APPEND BLANK first before the user can add anything to the table. If, however, the user changes their minds about adding a new record, a blank record is still in the table. I could check key fields, and if they are blank delete the record, but I was wandering about how everyone else is adding a new record to a table. Any input?
>
>Ed
Ed,

Enable table buffering and then if the suer says save you TableUpdate() and if the suer says throw it away you TableRevert(). You still need to append blank but the blank record is in teh buffer and not the file on disk.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform