BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Updating Paradox MemoField

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Dennis Landi
Guest





PostPosted: Thu Apr 22, 2004 7:35 pm    Post subject: Updating Paradox MemoField Reply with quote



I have scoured google, but don't really see a satisfactory answer:

The following code produces a "type mismatch in expression"

<snip>
Q.Close;
Q.SQL.Clear();
Q.SQL.Add('UPDATE "Invoice_Process.db" ' +
'SET Invoice_Worksheet = :ParamBlob '+
'WHERE ("Bill #" = :BillNum)');

q.ParamByName('BillNum').AsInteger := BillNum;
q.ParamByName('ParamBlob').asMemo := MyStringlist.text;

Q.Prepare;
Q.ExecSQL;
</snip>

Can anone show me how to update a Paradox memo field from a tQuery?

My version of the BDE is 5.01.

-dennis


Back to top
Dennis Landi
Guest





PostPosted: Thu Apr 22, 2004 8:01 pm    Post subject: Re: Updating Paradox MemoField Reply with quote




"Sverre Hårstadstrand" <sverreeh1 (AT) autocalc (DOT) no> wrote

Quote:
Dennis Landi wrote:

Can anone show me how to update a Paradox memo field from a tQuery?

It seems to be the # in the fieldname "Bill #" that is your problem.

The rest of your code works OK here...

SverreEH



hmmm. I will check that out.



Back to top
Dennis Landi
Guest





PostPosted: Thu Apr 22, 2004 8:21 pm    Post subject: Re: Updating Paradox MemoField Reply with quote



Sverre, you were correct. It seems the BDE LocalSQL requires this sort of
syntax:

"Invoice_Process.db"."Bill #"

when dealing with fieldnames in quotations....

Thanks!

-d


"Dennis Landi" <none[at]none.com> wrote

Quote:

"Sverre Hårstadstrand" <sverreeh1 (AT) autocalc (DOT) no> wrote in message
news:4088227f$1 (AT) newsgroups (DOT) borland.com...
Dennis Landi wrote:

Can anone show me how to update a Paradox memo field from a tQuery?

It seems to be the # in the fieldname "Bill #" that is your problem.

The rest of your code works OK here...

SverreEH



hmmm. I will check that out.





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.