W
Wendy Parry
Hi,
I posted on this before but no one has had any suggestions, or I didn't
explain very well.
I have a recordset, which has a varying number of records according to
the number of subjects a student studies.
I would like to extract the data for the same field throughout the
recordset and display its contents in a separate page on a tab control.
My pseudo code is something like this:
Start
Go and get the records required
For each record in the recordset
Open the tabbed subject report in design mode
Add a new page to the tab control
Add a text field control
Connect the recordset datasource tblAcadGrade.Term source
Next record
I have the following code to add a page to the tab control:
Function AddPage() As Boolean
Dim frm As Form
Dim tbc As TabControl, pge As Page
On Error GoTo Error_AddPage
Set frm = Forms!testTabControl
Set tbc = frm!TabCtl1
tbc.Pages.Add
AddPage = True
Exit_AddPage:
Exit Function
Error_AddPage:
MsgBox err & ": " & err.Description
AddPage = False
Resume Exit_AddPage
End Function
But need to work in the data from the records. Or if you have any other
ways of approaching this I'm open to suggestion. (The only problem that
each subject has it's own assessment record and I can't use the XTab as
it assumes that every pupil studies every subject unless I look for null
values, but then that wouldn't work as some staff may not have written
their reports on time)
Please any help would be well received, I have to finish my uni project
by the end of the month.
I posted on this before but no one has had any suggestions, or I didn't
explain very well.
I have a recordset, which has a varying number of records according to
the number of subjects a student studies.
I would like to extract the data for the same field throughout the
recordset and display its contents in a separate page on a tab control.
My pseudo code is something like this:
Start
Go and get the records required
For each record in the recordset
Open the tabbed subject report in design mode
Add a new page to the tab control
Add a text field control
Connect the recordset datasource tblAcadGrade.Term source
Next record
I have the following code to add a page to the tab control:
Function AddPage() As Boolean
Dim frm As Form
Dim tbc As TabControl, pge As Page
On Error GoTo Error_AddPage
Set frm = Forms!testTabControl
Set tbc = frm!TabCtl1
tbc.Pages.Add
AddPage = True
Exit_AddPage:
Exit Function
Error_AddPage:
MsgBox err & ": " & err.Description
AddPage = False
Resume Exit_AddPage
End Function
But need to work in the data from the records. Or if you have any other
ways of approaching this I'm open to suggestion. (The only problem that
each subject has it's own assessment record and I can't use the XTab as
it assumes that every pupil studies every subject unless I look for null
values, but then that wouldn't work as some staff may not have written
their reports on time)
Please any help would be well received, I have to finish my uni project
by the end of the month.