Consulting

Results 1 to 2 of 2

Thread: VBA CopyFromRecordset won't print all collumns

  1. #1
    VBAX Newbie
    Joined
    Jul 2016
    Posts
    1
    Location

    VBA CopyFromRecordset won't print all collumns

    My problem is that one column in My ADO recordset won't print to worksheet when i use CopyFromRecordset RS. I believe the reason is that this column have datatype text in the database im getting it from, but i don't see the reason why i can't print it. I can see that the coulumn is saved in the dataset when looking in the window; Locals/fields/item7, and if i saves dataset in a string with rs.getstring all columns gets printed to string.

    It works if i convert datatype to Varchar(255) in the SQL with "Cast(column as varchar(255)". But the column can be up too 1000 chars, so varchar (255) won't be large enough to show the entire text. Help please

  2. #2
    VBAX Newbie
    Joined
    Oct 2016
    Posts
    3
    Location
    Hi AndersA

    could you upload your db?

    be seeing you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •