Results 1 to 8 of 8

Thread: Image List must be initialized before it can be used.

Threaded View

  1. #7

    Thread Starter
    Lively Member
    Join Date
    Jun 2013
    Posts
    100

    Re: Image List must be initialized before it can be used.

    THank you guys for your help.

    I have been able to edit the code and it does pull in the values correctly now.

    I read somewhere that with the report view, the image was optional, thats why I did not included it after the date.

    I removed the area in red and it worked fine.

    Code:
    Do While Not oRS.EOF
       Set lvwItem = ListView1.ListItems.Add(, , oRS.Fields.Item("Date_Entered").Value, "mm/dd/yyy"))
       lvwItem.SubItems(1) = oRS.Fields.Item("Loan_Number").Value
       lvwItem.SubItems(2) = Format(oRS.Fields.Item("Investor").Value)
       lvwItem.SubItems(3) = oRS.Fields.Item("State").Value
       lvwItem.SubItems(4) = Format(oRS.Fields.Item("Doc_Type").Value)
       oRS.MoveNext
    Loop
    As I said before. I am pretty fluent in VBA, but getting into VB im a bit lost in some places. Especially in the area of talking back and forth to the server. You'll be seeing alot of me! Thanks again!
    Last edited by MWhiteDesigns; Jun 18th, 2013 at 09:58 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width