Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form with Insert
Message
From
14/02/2000 09:15:54
 
 
To
10/02/2000 07:42:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00329908
Message ID:
00331676
Views:
31
It sounds as if you are doing something like this:

Append blank
[fill in form]
[check for errors]
replace x with m.x, ...


If this is so, I would recommend that you have the user fill in the form using memory variables of the same name as the database fields. Do all of your validations against these fields. When you are truly ready to put the record in the database, peroform an INSERT INTO [databasename] FROM MEMVAR. This is more efficient, gets rid of the kinds of problems you are discussing, and ensures that there are no orphan records.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform