Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I append a record using a view?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00050457
Message ID:
00050509
Views:
20
>I'm using a view and I know how to go about editing a record:
>
>CURSORSETPROP("Buffering", 3)
>
>* Do whatever changes you want and then either
>
>TABLEUPDATE()
>
>* OR
>
>TABLEREVERT()
>
>Simple enough...
>
>But how do I buffer the addition of a new record?
>
>CURSORSETPROP("Buffering", 3)
>* followed by
>APPEND BLANK
>Gives me a new record, but the buffer has the values from the record I was on BEFORE the APPEND
>
>What do I do?
>
>Thanx,
>Joe Pirola

Joe, have you issued a ThisForm.Refresh() so the form reflects the values of the new record?

Check to see which record is active in the table - should be the appended record.

If your form values are wrong, then do a Refresh(). If the record pointer is wrong, step through the code from the append blank and find where the pointer moves.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform