PRB: Non-updateable View Generates Warnings in Form Wizard (154980)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
This article was previously published under Q154980 SYMPTOMS
When running a form created using the Form Wizard, the following warning
may be displayed:
Edits to one or more of the views may not be permanent. To remedy this,
ensure the View's Send SQL Updates checkbox is checked in the View
Designer.
CAUSE
The form was created from one or more views that have not been made
updateable.
WORKAROUND
In order to avoid this warning, you may implement one of the following
workarounds. It is important to recognize that neither of these two
workarounds allows changes to be made to the data; they merely provide a
method of avoiding the warning message.
- Make at least one field in the view updateable, and check the "Send SQL
Updates" checkbox.
- Modify the txtbtns class (included in Wizstyle.vcx) so that it will not
display the warning. Open the txtbtns class in the visual class
designer, and comment out the following lines of code in the Initvars
method:
IF !CURSORGETPROP("SendUpdates",.Alias) AND !m.lShowedMess
=MESSAGEBOX(C_NOUPDATEVIEW_LOC)
lShowedMess = .T.
ENDIF
Note: Modifying this class will affect every form that is created with the
Form Wizard.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | KB154980 |
---|
|