Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Records editing

Status
Not open for further replies.

tsm

Programmer
Nov 7, 2000
9
GR
When i have a detail table and i want to edit or add or update a set of records what is the best way to do it. Create cursor, create view or another?
For example when a have a grid that the recordsource is SQL statement with 'INTO cursor' this cursor is readonly. How can i update this records ?
 
I assume your data source is a DBF table, not a remote data source. You probably want to use an updatable local view, although editing directly to the table might be appropriate depending on the circumstances.

Robert Bradley

 
You mean that the local view is like an 'image' of the
table(s) and it has the behaviour of the real table(s) ?
Is it possible to switch between views and lock different records in every view ?
 
Yes yes and yes.

You'll need to read up on buffering and commands such as TableUpdate and TableRevert before actually trying this. Not complicated, but you'll get frustrated quickly if you don't first understand the concepts.

Robert Bradley

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top