Reference https://www.accessforums.net/access/...kup-21396.html
Hi, everyone! I know I'm 2 years behind on this issue, but I'm hoping someone could help. I have used the second method suggested by pbaldy but it only works for one of the columns. I have a table "IssueLog" with a combo box (Inmate) that hooks up to a query that feeds from another database. All of the fields shown below are in that query. I want the user to select an inmate from the combo box, and have the rest of their info fill in automatically. But... I also want all that info copied into the "IssueLog" table.
Here's the code I used in the Inmate_AfterUpdate()
Me.Number = Me.Inmate.Column(1)
Me.Gender = Me.Inmate.Column(2)
Me.DOB = Me.Inmate.Column(3)
Me.SecRating = Me.Inmate.Column(4)
Me.Custody = Me.Inmate.Column(5)
Me.AdmitDate = Me.Inmate.Column(6)
Me.ERDate = Me.Inmate.Column(7)
Me.CaseManager = Me.Inmate.Column(8)
When I open the form and choose an Inmate, the Number field populates, but none of the other ones. The column numbers I am using match the columns in my query, so I'm not sure what I'm doing wrong.
Does anyone have any ideas?
Steven