Hi Folks -
I have a database of clients who come into the adult learning lab where I work. We have a Daily Visits form where we enter who comes in and what they accomplish. Linked to this form is a subform that shows the last time the client filled out an intake form (which has to be done yearly).
What I am trying to arrange is that when I open the Daily Visits form, the client ID gets transferred to the subform, and the subform then shows the intake date for that client. I also need the form to, when I choose another client to enter information for, update with the intake date of that newly chosen client.
I have tried this code, but it only works for the first two clients, and then does not return any further intake dates.
Private Sub Student_ID_Field_Change()
Me.txt.FirstName.Value = Me.Student_ID_Field.Column(1)
Me.txt.LastName.Value = Me.Student_ID_Field.Column(2)
Me.ClientIntakeDates_subform.Form![ID] = Me.Student_ID_Field.Column(0)
Me.ClientInnakeDates_subform.Form.Requery
End Sub0
The pertinent lines are the two "Me.ClientIntakeDates" lines. The Column(0) is the Client ID field of the client record.
I am sure I am missing something relatively easy and straightforward here, and would appreciate any suggestions.
Thanks in advance.
Garry