DAO.QuaryDef and Memo fields...HELP!! 
Author Message
 DAO.QuaryDef and Memo fields...HELP!!

I am trying to use a DAO.QuaryDef object to update a table (.mdb) which
contains memo fields. I have ensured the parameter type is dbMemo (12) but
it will not work on strings longer than 255 characters. I thought the dbMemo
type accepted long strings (ie longer than 255 chars). Is there a bug, or am
I doing something wrong?

The sql is...

PARAMETERS [?OtherComments] LONGTEXT, [?ClientID] LONG;
UPDATE Client SET OtherComments=[?OtherComments] WHERE ClientID=[?ClientID]

It works in VisData, but breaks when I create the querydef in code.

Any suggestions?

TIA

--
Phil Hodey



Sat, 14 Jul 2001 03:00:00 GMT  
 DAO.QuaryDef and Memo fields...HELP!!
may be not exactly what you search for : take a look to Getchunk/AppendChunk
methods to get/set long fields.

2 things :

1. r u sure about the use of '?' char which may conflict with like operator
2. how do you affect parameters when executing the query ?

Phil Hodey a crit dans le message

Quote:
>I am trying to use a DAO.QuaryDef object to update a table (.mdb) which
>contains memo fields. I have ensured the parameter type is dbMemo (12) but
>it will not work on strings longer than 255 characters. I thought the
dbMemo
>type accepted long strings (ie longer than 255 chars). Is there a bug, or
am
>I doing something wrong?

>The sql is...

>PARAMETERS [?OtherComments] LONGTEXT, [?ClientID] LONG;
>UPDATE Client SET OtherComments=[?OtherComments] WHERE ClientID=[?ClientID]

>It works in VisData, but breaks when I create the querydef in code.

>Any suggestions?

>TIA

>--
>Phil Hodey




Sat, 14 Jul 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help with Access Memo Field (DAO)

2. Append memo field to a different memo field

3. Memo fields - problems reporting 2 memo fields

4. Problem With Memo Fields And DAO

5. Memo field and DAO

6. Access, VB, and DAO problem with a Memo Field

7. Memo fields and DAO

8. HELP: linking txt field with a memo field

9. Embed Fields within a memo field

10. Help - Searching Memo Fields For Multiple Strings

11. Need Help - Searching Memo Fields For Strings

12. Help! I need to Split a memo field

 

 
Powered by phpBB® Forum Software