H
Haoran
Can anyone give an idea how I can loop through the objects of a report, every
row?
And, how to go to the next page. So, I'm trying to get the data in the
details section.
Partial Code:
Public Function SaveReportDetail() As Boolean
Dim strObjectName As String
Dim oRPT As Report
Dim oCTRL As Control, oPROP As Property
Dim oPAGE As Page, strQuery As String
strObjectName = Application.CurrentObjectName
If Application.CurrentObjectType = acReport Then
Set oRPT = Application.Reports.Item(strObjectName)
For Each oCTRL In oRPT.Section(0).Controls
Next
Else
MsgBox "not a report"
End If
End Function
Thanks!!
row?
And, how to go to the next page. So, I'm trying to get the data in the
details section.
Partial Code:
Public Function SaveReportDetail() As Boolean
Dim strObjectName As String
Dim oRPT As Report
Dim oCTRL As Control, oPROP As Property
Dim oPAGE As Page, strQuery As String
strObjectName = Application.CurrentObjectName
If Application.CurrentObjectType = acReport Then
Set oRPT = Application.Reports.Item(strObjectName)
For Each oCTRL In oRPT.Section(0).Controls
Next
Else
MsgBox "not a report"
End If
End Function
Thanks!!