M
Mark Kubicki
I'm trying to create a set of variable of all the fields in a table
[tbeFixtureSchedulePrintoptions].
This information will later be used in formatting the detail section of the
report without having to look-up the values in the
[tbeFixtureSchedulePrintoptions] at each record
I'm getting an "object not supported" error; so... this will be a new lesson
for me; could someone please direct me on what that would be and how to
achieve what I am trying to do (please)
many thanks in advance,
mark
Private Sub Report_Open(Cancel As Integer)
Dim dbs As Database
Dim rst1 As DAO.Recordset
Dim rst2 As DAO.Recordset
Dim vField As Field
Set dbs = CurrentDb
Set rst1 = dbs.OpenRecordset("tbeProjectInfo", dbOpenSnapshot)
Set rst2 = dbs.OpenRecordset("tbeFixtureSchedulePrintoptions",
dbOpenSnapshot)
For Each vField In rst2
vName = "v" & vField.name
Dim vName As Variant
vName = vField.Value
Next vField
End Sub
[tbeFixtureSchedulePrintoptions].
This information will later be used in formatting the detail section of the
report without having to look-up the values in the
[tbeFixtureSchedulePrintoptions] at each record
I'm getting an "object not supported" error; so... this will be a new lesson
for me; could someone please direct me on what that would be and how to
achieve what I am trying to do (please)
many thanks in advance,
mark
Private Sub Report_Open(Cancel As Integer)
Dim dbs As Database
Dim rst1 As DAO.Recordset
Dim rst2 As DAO.Recordset
Dim vField As Field
Set dbs = CurrentDb
Set rst1 = dbs.OpenRecordset("tbeProjectInfo", dbOpenSnapshot)
Set rst2 = dbs.OpenRecordset("tbeFixtureSchedulePrintoptions",
dbOpenSnapshot)
For Each vField In rst2
vName = "v" & vField.name
Dim vName As Variant
vName = vField.Value
Next vField
End Sub