Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - reportcontrol and database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

reportcontrol and database

 Post Reply Post Reply
Author
Message
ray2012 View Drop Down
Newbie
Newbie


Joined: 09 July 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ray2012 Quote  Post ReplyReply Direct Link To This Post Topic: reportcontrol and database
    Posted: 09 July 2012 at 5:57am
hi,
I am new to this control and I was wondering if there is any way to read each row of my reportcontrol and register the value of each item to a ms access database. I tried the following code, but it's not working:
    For i = 1 To RptControl.Rows.Count - 1
        .AddNew
        .Fields("Field1") = RptControl.Rows.Row(i).Record.Item(0).Value
        .Fields("Field2") = RptControl.Rows.Row(i).Record.Item(1).Value
        .Fields("Field3") = RptControl.Rows.Row(i).Record.Item(2).Value
        .Fields("Field4") = RptControl.Rows.Row(i).Record.Item(3).Value
        .Update
    Next
please let me know what am I doing wrong?
thank you,
Cry
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.