Results 1 to 2 of 2

Thread: data report

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    data report

    Hi
    I have a listbox that loads its item from an SQL server table

    VB Code:
    1. rs.open"Select * from Person",cnn,adopenStatic,adLockOptimistic
    2. Rs.moveFirst
    3. Do while not rs.EOF
    4. sname=rs!PersonName
    5. list1.AddItem sname
    6. DataReport1.Label1.Caption = sname
    7. rs.movenext
    8. loop
    9. rs.close
    I have a Datareport and for each sname(for each rs!PersonName) i want to add it to my report into a label(RptLabel)

    Can anyone guide me?
    Thanks

  2. #2
    Addicted Member BestS's Avatar
    Join Date
    Mar 2005
    Posts
    222

    Re: data report

    What is wrong with the textboxes
    put one and you'll get all name listed, it looks just like label...
    Using Visual Basic 6.0, access 2000, Visual Studio 2005

    Rate the post that you approve

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