I use the following code in a database I have to copy the course title text box from one form box to another form.
Code:
Private Sub CourseTitle_AfterUpdate()
Dim cTitle As String
cTitle = Me.CourseTitle.Column(0)
DoCmd.OpenForm "frmCourseStudentRecord", acNormal, , _
"strCourseTitle='" & cTitle & "'"
DoCmd.Close acForm, Me.Name
End Sub
This works great but what I can't seem to solve and need some help with is rather than copy the course title to the other form I would like to copy the venue, which is in the same table, linked to this course title but not shown in the form. I would then automatically populate the frmCourse with this. The Row Source for the CourseTitle is a Query based on tblCourslist, which has the venue included in this table.