ClaraBarton
Registered User.
- Local time
- Today, 15:30
- Joined
- Oct 14, 2019
- Messages
- 584
I have a continuous form with lists on the left and I want to show the related books on the right.
Can you tell me what's wrong with the syntax on line 2 in each case?
Should Child0 become the source name?
Can you tell me what's wrong with the syntax on line 2 in each case?
Should Child0 become the source name?
Code:
Private Sub cboLists_AfterUpdate()
Select Case Me.cboLists.Value
Case "Authors"
Me!Child0.SourceObject = "lstsubAuthors"
Me!Child0.Form.BookID = Me!Books.Form.BookID
Case "Illustrators"
Me!Child0.SourceObject = "lstsubIllustrators"
Me!Child0.Form.IllustratorID = Me!Books.Form.IllustratorID
Case "Publishers"
Me!Child0.SourceObject = "lstsubPublishers"
Me!Child0.Form.PublisherID = Me!Books.Form.PublisherID
Case "Series"
Me!Child0.SourceObject = "lstsubSeries"
Me!Child0.Form.SeriesID = Me!Books.Form.SeriesID
Case "Status"
Me!Child0.SourceObject = "lstsubStatus"
Me!Child0.Form.StatusID = Me!Books.Form.StatusID
Case "Subjects"
Me!Child0.SourceObject = "lstsubSubjects"
Me!Child0.Form.SubjectID = Me!Books.Form.SubjectID
End Select
Last edited by a moderator: