B
Brian
Hello all,
Here is the code I have.. I am looking for a way from a dynamics table
to have dynamics columns
Private Sub Report_Open(Cancel As Integer)
Dim Rst As Recordset, f As Field, i As Integer, x As Control
Set Rst = CurrentDb.OpenRecordset("tblStand")
For Each f In Rst.Fields
If f.Name <> "DBH" And f.Name <> "Flag" Then
i = 1
Do While i < 16
Me.Controls("txtSpc" & (i)).Value = f.Name
Loop
Rst.MoveNext
End If
Next
Rst.Close
'txtSpc(i).Value = txtSpc(i) & " " & f.Name
End Sub
Any help would be great...
Here is the code I have.. I am looking for a way from a dynamics table
to have dynamics columns
Private Sub Report_Open(Cancel As Integer)
Dim Rst As Recordset, f As Field, i As Integer, x As Control
Set Rst = CurrentDb.OpenRecordset("tblStand")
For Each f In Rst.Fields
If f.Name <> "DBH" And f.Name <> "Flag" Then
i = 1
Do While i < 16
Me.Controls("txtSpc" & (i)).Value = f.Name
Loop
Rst.MoveNext
End If
Next
Rst.Close
'txtSpc(i).Value = txtSpc(i) & " " & f.Name
End Sub
Any help would be great...