PC Review


Reply
Thread Tools Rate Thread

Access database Memo data types

 
 
Sanjib Biswas
Guest
Posts: n/a
 
      3rd Nov 2005
Hi,

I am trying to add record (INSERT INTO...) into a Memo field in the
access database. But the ExecuteNonQuery() throws an exception. "Syntax
error (missing operator) in query expression "<field value>"". Also note
that <field value> is a string and has apostrophes in two places. For text
field I am sending with apostrophes around the field value and it works.

Does any one know, what I am missing here?

Regards
Sanjib


 
Reply With Quote
 
 
 
 
Sanjib Biswas
Guest
Posts: n/a
 
      3rd Nov 2005
I got the answer Chr(34) + <field value> + Chr(34)

"Sanjib Biswas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I am trying to add record (INSERT INTO...) into a Memo field in the
> access database. But the ExecuteNonQuery() throws an exception. "Syntax
> error (missing operator) in query expression "<field value>"". Also note
> that <field value> is a string and has apostrophes in two places. For text
> field I am sending with apostrophes around the field value and it works.
>
> Does any one know, what I am missing here?
>
> Regards
> Sanjib
>



 
Reply With Quote
 
Sanjib Biswas
Guest
Posts: n/a
 
      5th Nov 2005
By the does any know, the correct way to insert a Memo record into Access
database? Because even after adding quote before and after the field value
does not work all the times. Sometime, I had to pass double quote 'Chr(39)'
to get it working.

Regards
Sanjib

"Sanjib Biswas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I got the answer Chr(34) + <field value> + Chr(34)
>
> "Sanjib Biswas" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> I am trying to add record (INSERT INTO...) into a Memo field in the
>> access database. But the ExecuteNonQuery() throws an exception. "Syntax
>> error (missing operator) in query expression "<field value>"". Also note
>> that <field value> is a string and has apostrophes in two places. For
>> text field I am sending with apostrophes around the field value and it
>> works.
>>
>> Does any one know, what I am missing here?
>>
>> Regards
>> Sanjib
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memo format field data problem - Data import from Access database AFSSkier Microsoft Excel Programming 0 29th Apr 2009 05:51 PM
(ADO)Getting data from access database Memo field Mike Microsoft Excel Programming 3 6th Jan 2009 02:11 PM
Using iif() wtih different data types - Text & Memo Mimo Microsoft Access Queries 4 13th Feb 2008 12:42 AM
Database Data Types Jonathan Wood Microsoft ADO .NET 4 27th Aug 2007 04:22 PM
Re: combining different data types into memo field Van T. Dinh Microsoft Access Queries 0 15th Jan 2007 11:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 PM.