main logo
Subject: Re: Saving Data added to a General Field
Author: Lynette Tillner
Posted: 2002/02/14 11:56:42
 
View Entire Thread
New Search


<i><font color="#663300"><i><font color="#663300"><i><font color="#663300">I have a form with a command button that browses a set of records which include a general field. I can add the embedded graphic I want this way but when I go to SAVE the record, I get the following error:

Error #: 1489
Message: General fields cannot be used in the WHERE condition of an update statement. Change the WhereType property of the view.
Line #: 44
Code: ERROR lnRetVal
Method: save
Object: ins_cad_add_form

This doesn't happen if I update the table directly... Is it possible to add data to a general field via a VIEW, or is it only possible by directly accessing the TABLE???
And if So, I guess I should open the table exclusively with this special form and close it explicitly when the form is destroyed?</font></i>

Sounds like you have the view set up incorrectly. Open the view you are using, and on the Update Criteria page, set the "SQL Where Clause Includes" option to "Key Fields Only". You should do this with <b>all</b> your views, as this is the most efficient method over a network. Codebook handles the conflict checking that the other options are intended to deal with.
</font></i>

And quickly, before Ed goes on vacation... When I did that I get this error:

Error #: 1912
Message: Operation is invalid for a General field.
Line #: 51
Code: IF NOT (OLDVAL(lcFld) == CURVAL(lcFld))
Method: conflictcheck
Object: idatabehavior


What should I do? Punt and use the table for this form only????

Thanks!
Lynette
</font></i>

Additionally, Here are all the settings on my Update Criteria Page for the View (maybe I have something else wrong?):

Only specific fields selected - keyfield, parentkey, general field, and name field

filter is set to keyfield = ?vp_keyfield

No Order, No Grouping, No Joins

Update Criteria is: table: ibldg
Send SQL Updates is checked
all fields checked, keyfield double checked
SQL Where Clause includes: Key Fields only (as noted)
Update using --- SQL Update selected (was SQL Delete then Insert)--- same error either way...

My form uses a link to the application to find the file, then opens a browse so you can double click on the general field and paste the data in as a picture (we want the info embedded) .

I'm at a loss.

Lynette
Lynette
ltillner (AT) yahoo .D.OT com

 
©2002 Lynette Tillner
<-- Prior Message New Search Next Message -->