>Could you help me with this: What is the code I put on a control button on a form to add a record, and what is the code would I use to then save the record?
Herman
I can see these questions ballooning out of control. You need to learn the language before you can build apps. However, if you know FoxPro at all then the following commands add a record, and you should look them up in Help
Append Blank
Insert into ...
Besides this, you need to make your tables buffered (see table buffering) by setting their BufferModeOverride property to what best suits your circumstances (but generally 3 or 5 surfice, depending on whether you update 1 or many rec's simultaneously, respectively), in the Data Environment.
So when you want to save the rec you issue TableUpdate() or, to undo, TableRevert().
The above commands you can put in buttons, or form methods which you call from the buttons.
Howewver, most people would make a Class of the save button, new button, etc.
I could go on forever :-)
HTH
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.