Y
Yvette T
I have forms and reports that will need to vary over time as far as what
fields they will show. My fields are all annual numbers. Let's take the
easiest:
Field names = [2006], [2007], [2008] etc.
The user will input what years he/she wants the form/report to have. If
they want to begin with "[2007]" then I am going to change the first column
heading's (Label_name) to "2007" and then I wp=ould like the text boxes below
it to look at the label and convert the text "2007" to the field name [2007].
I wrote this but is does not work:
Function LabelField(LName As String) As Field
'this is used to look at a column heading and extract the correct year for
the form/report
LabelField = Label
End Function
HELP!!!! Thanks YVette
fields they will show. My fields are all annual numbers. Let's take the
easiest:
Field names = [2006], [2007], [2008] etc.
The user will input what years he/she wants the form/report to have. If
they want to begin with "[2007]" then I am going to change the first column
heading's (Label_name) to "2007" and then I wp=ould like the text boxes below
it to look at the label and convert the text "2007" to the field name [2007].
I wrote this but is does not work:
Function LabelField(LName As String) As Field
'this is used to look at a column heading and extract the correct year for
the form/report
LabelField = Label
End Function
HELP!!!! Thanks YVette