Here is my problem...
I have a form (frmWelcome), which contains a subform (frmNavigation).
My goal is to read a bunch of values from a record source into an array. Then I want to list each of these values in the subform, but list each one in a separate label so that it can be hyperlinked to the recordset it came from.
Question: I am getting the following error message when trying to programmatically add labels to the subform.
"The Microsoft Jet database engine does not recognize 'Text 10' as a valid field name or expression"
Here is what this part of my code looks like:
*In the form open
DoCmd.OpenForm "frmNavigation", acDesign
LayoutForm
*
*
Private Sub LayoutForm()
Dim lbl As Control
set lbl = CreateControl(Form_frmNavigation.Name, acTextBox, acDetail) *This line gives me the error
End Sub
*
I know that this isn't set up to add a different label for each one, but i will add the loop in after i figure out how to add one.
Any ideas on how to get rid of this error/approach it from a different way.
I have a form (frmWelcome), which contains a subform (frmNavigation).
My goal is to read a bunch of values from a record source into an array. Then I want to list each of these values in the subform, but list each one in a separate label so that it can be hyperlinked to the recordset it came from.
Question: I am getting the following error message when trying to programmatically add labels to the subform.
"The Microsoft Jet database engine does not recognize 'Text 10' as a valid field name or expression"
Here is what this part of my code looks like:
*In the form open
DoCmd.OpenForm "frmNavigation", acDesign
LayoutForm
*
*
Private Sub LayoutForm()
Dim lbl As Control
set lbl = CreateControl(Form_frmNavigation.Name, acTextBox, acDetail) *This line gives me the error
End Sub
*
I know that this isn't set up to add a different label for each one, but i will add the loop in after i figure out how to add one.
Any ideas on how to get rid of this error/approach it from a different way.