T
Tom
I have a main form which 3 sub forms:
- Main form has
- subform "frmSurveyKPILevel_1" which has
- subsubform "frmSurveyKPILevel_2" which has
- subsubsubform "frmSurveyKPILevel_3"...
On the 3rd level subform "frmSurveyKPILevel_3", I have a control (Score)
which value I need to insert into a table via command button on the main
form.
I used the 2 strSQLs below... they don't give me a syntax error, but I get
RunTime Error 438 "Object doesn't support this property of method".
Any ideas how I can insert the value from 3rd level subform in a table via
command button on the main form?
strSQL = "INSERT INTO tblKPIAnswers (Score) " & _
"VALUES ('" &
Me.[frmSurveyKPILevel_1].[Form].[frmSurveyKPILevel_2].[Form].[frmSurveyKPILevel_2].[Form].[RadioButton]
& "')"
strSQL = "INSERT INTO tblKPIAnswers (ScoreQ1) " & _
"VALUES ('" &
Me.[frmSurveyKPILevel_1].[Form].[frmSurveyKPILevel_2].[Form].[frmSurveyKPILevel_2].[Form].[RadioButton]
& "')"
- Main form has
- subform "frmSurveyKPILevel_1" which has
- subsubform "frmSurveyKPILevel_2" which has
- subsubsubform "frmSurveyKPILevel_3"...
On the 3rd level subform "frmSurveyKPILevel_3", I have a control (Score)
which value I need to insert into a table via command button on the main
form.
I used the 2 strSQLs below... they don't give me a syntax error, but I get
RunTime Error 438 "Object doesn't support this property of method".
Any ideas how I can insert the value from 3rd level subform in a table via
command button on the main form?
strSQL = "INSERT INTO tblKPIAnswers (Score) " & _
"VALUES ('" &
Me.[frmSurveyKPILevel_1].[Form].[frmSurveyKPILevel_2].[Form].[frmSurveyKPILevel_2].[Form].[RadioButton]
& "')"
strSQL = "INSERT INTO tblKPIAnswers (ScoreQ1) " & _
"VALUES ('" &
Me.[frmSurveyKPILevel_1].[Form].[frmSurveyKPILevel_2].[Form].[frmSurveyKPILevel_2].[Form].[RadioButton]
& "')"