Problem with Access MEMO Fields & VB 
Author Message
 Problem with Access MEMO Fields & VB

Hi there;
Using VB5 to read an MS Access97 MEMO type field through an ODBC driver.

if I say
    txtField1 = rs!memofield      (where rs is an RDO resultset)

I get an invalid use of null error

If I try
txtFIeld1 = rs!memofield.getchunk(1000) - I get the same error.

if I try
If isnull(rs!memofield) ......    I get the same error

if I try
if isnull(rs!memofield.getchunk(1000))    I still get the {*filter*}y error.

Anyone any ideas why I  keep getting errors when retrieving a NON-NULL memo
field.

Much Appreciated

Garry S Smith
Software Engineer
George-James Associates Ltd



Mon, 11 Feb 2002 03:00:00 GMT  
 Problem with Access MEMO Fields & VB
Try using a variant instead of a string.

Bryan

Quote:

>Hi there;
>Using VB5 to read an MS Access97 MEMO type field through an ODBC driver.

>if I say
>    txtField1 = rs!memofield      (where rs is an RDO resultset)

>I get an invalid use of null error

>If I try
>txtFIeld1 = rs!memofield.getchunk(1000) - I get the same error.

>if I try
>If isnull(rs!memofield) ......    I get the same error

>if I try
>if isnull(rs!memofield.getchunk(1000))    I still get the {*filter*}y error.

>Anyone any ideas why I  keep getting errors when retrieving a NON-NULL memo
>field.

>Much Appreciated

>Garry S Smith
>Software Engineer
>George-James Associates Ltd



Tue, 12 Feb 2002 03:00:00 GMT  
 Problem with Access MEMO Fields & VB

You should not use RDO with Access MDB files. Some RDO features don't work. (You just found one.) Some Access MDB features are unavailable. (Can't compact or repair the MDB.) Performance is poor and buggy. RDO was not designed to be used with MDB files. Use DAO instead.

Regards,
Simon Jones
MillStream Designs Ltd
Independent IT Consultants


  Hi there;
  Using VB5 to read an MS Access97 MEMO type field through an ODBC driver.

  if I say
      txtField1 = rs!memofield      (where rs is an RDO resultset)

  I get an invalid use of null error

  If I try
  txtFIeld1 = rs!memofield.getchunk(1000) - I get the same error.

  if I try
  If isnull(rs!memofield) ......    I get the same error

  if I try
  if isnull(rs!memofield.getchunk(1000))    I still get the {*filter*}y error.

  Anyone any ideas why I  keep getting errors when retrieving a NON-NULL memo
  field.

  Much Appreciated

  Garry S Smith
  Software Engineer
  George-James Associates Ltd



Wed, 13 Feb 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. vb text control & access memo field

2. Memo fields - problems reporting 2 memo fields

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

4. ADO, VB and Access MEMO field problem

5. VB dBase Clipper Access memo field problem

6. oledbtype & access memo field

7. Append memo field to a different memo field

8. Creating a Word doc from Access and Problems with Memo field

9. MS Access memo field problems

10. Problem retrieving the memo field in Access.

11. Access 2.0, Memo-field problem

12. Problem returning data from a scroll text box to an Access memo field

 

 
Powered by phpBB® Forum Software