Richard1941
Registered User.
- Local time
- Today, 13:20
- Joined
- Oct 29, 2012
- Messages
- 34
I'm trying to use cascading combo boxes, where the second box is on a subform. I've found several examples of code to put on the first box after update action that require setting the record source for the second box. However, every structure I've tried for referring to the second box fails with a compile error unable to find the control. Here is the current code:
Private Sub ServiceRequested_AfterUpdate()
Dim strSQL As String
strSQL = "SELECT " & Me!ServiceRequested & " FROM LUtblMemberServiceCategories"
[tblRequestVolunteers subform.Volunteer].RowSourceType = "Table/Query"
[tblRequestVolunteers subform.Volunteer].RowSource = strSQL
End Sub
It fails on the line that sets the row source type.
Suggestions?
Private Sub ServiceRequested_AfterUpdate()
Dim strSQL As String
strSQL = "SELECT " & Me!ServiceRequested & " FROM LUtblMemberServiceCategories"
[tblRequestVolunteers subform.Volunteer].RowSourceType = "Table/Query"
[tblRequestVolunteers subform.Volunteer].RowSource = strSQL
End Sub
It fails on the line that sets the row source type.
Suggestions?