HopeResearch
New member
- Local time
- Today, 05:28
- Joined
- Jul 14, 2014
- Messages
- 2
Hello All,
I'm relatively new to Access so bear with me.
I have a form I created in the past that autofills some of its fields based on the user's selection of a record from a combobox linked to another table. The form has been working perfectly however I recently tried to add a couple of more fields to the form that need to be autofilled. I added the new fields to the source table and added columns to the combobox that should allow my VB code to fill those boxes. However only one of the new fields is filling correctly. After trying a few different things I notice that the problem seems to be with whatever data field becomes the 21st column in the combobox. Is there some sort of limit on the number of columns contained in the data source for such a box? Do anyone have any idea how to fix this?
I've pasted my VB code below
Option Compare Database
I'm relatively new to Access so bear with me.
I have a form I created in the past that autofills some of its fields based on the user's selection of a record from a combobox linked to another table. The form has been working perfectly however I recently tried to add a couple of more fields to the form that need to be autofilled. I added the new fields to the source table and added columns to the combobox that should allow my VB code to fill those boxes. However only one of the new fields is filling correctly. After trying a few different things I notice that the problem seems to be with whatever data field becomes the 21st column in the combobox. Is there some sort of limit on the number of columns contained in the data source for such a box? Do anyone have any idea how to fix this?
I've pasted my VB code below
Option Compare Database
Private Sub EmpIDAutofill_Change()
Me.EmployerCatAutofill.Value = Me.EmpIDAutofill.Column(1)
Me.StreetNumAutofill.Value = Me.EmpIDAutofill.Column(2)
Me.JobCityAutofill.Value = Me.EmpIDAutofill.Column(3)
Me.JobZipAutofill.Value = Me.EmpIDAutofill.Column(4)
Me.ComOnExactAddresss.Value = Me.EmpIDAutofill.Column(5)
Me.ExactAddressAutofill.Value = Me.EmpIDAutofill.Column(6)
Me.LatitudeAutofill.Value = Me.EmpIDAutofill.Column(7)
Me.LongitudeAutofill.Value = Me.EmpIDAutofill.Column(8)
Me.PositionAutofill.Value = Me.EmpIDAutofill.Column(9)
Me.JobCatAutofill.Value = Me.EmpIDAutofill.Column(10)
Me.PT_FTAutofill.Value = Me.EmpIDAutofill.Column(11)
Me.HoursAutofill.Value = Me.EmpIDAutofill.Column(12)
Me.EqualOppEmployerAutofill.Value = Me.EmpIDAutofill.Column(13)
Me.CrimHisAutofill.Value = Me.EmpIDAutofill.Column(14)
Me.RefAutofill.Value = Me.EmpIDAutofill.Column(15)
Me.RaceQAutofill.Value = Me.EmpIDAutofill.Column(16)
Me.SkillsTestAutofill.Value = Me.EmpIDAutofill.Column(17)
Me.EmpEmailAutofill.Value = Me.EmpIDAutofill.Column(18)
Me.CommOnEmpAutofill.Value = Me.EmpIDAutofill.Column(19)
Me.TimePostedAutoFill.Value = Me.EmpIDAutofill.Column(20)
Me.DatePostedAutofill.Value = Me.EmpIDAutofill.Column(21)
Me.EmployerCatAutofill.Value = Me.EmpIDAutofill.Column(1)
Me.StreetNumAutofill.Value = Me.EmpIDAutofill.Column(2)
Me.JobCityAutofill.Value = Me.EmpIDAutofill.Column(3)
Me.JobZipAutofill.Value = Me.EmpIDAutofill.Column(4)
Me.ComOnExactAddresss.Value = Me.EmpIDAutofill.Column(5)
Me.ExactAddressAutofill.Value = Me.EmpIDAutofill.Column(6)
Me.LatitudeAutofill.Value = Me.EmpIDAutofill.Column(7)
Me.LongitudeAutofill.Value = Me.EmpIDAutofill.Column(8)
Me.PositionAutofill.Value = Me.EmpIDAutofill.Column(9)
Me.JobCatAutofill.Value = Me.EmpIDAutofill.Column(10)
Me.PT_FTAutofill.Value = Me.EmpIDAutofill.Column(11)
Me.HoursAutofill.Value = Me.EmpIDAutofill.Column(12)
Me.EqualOppEmployerAutofill.Value = Me.EmpIDAutofill.Column(13)
Me.CrimHisAutofill.Value = Me.EmpIDAutofill.Column(14)
Me.RefAutofill.Value = Me.EmpIDAutofill.Column(15)
Me.RaceQAutofill.Value = Me.EmpIDAutofill.Column(16)
Me.SkillsTestAutofill.Value = Me.EmpIDAutofill.Column(17)
Me.EmpEmailAutofill.Value = Me.EmpIDAutofill.Column(18)
Me.CommOnEmpAutofill.Value = Me.EmpIDAutofill.Column(19)
Me.TimePostedAutoFill.Value = Me.EmpIDAutofill.Column(20)
Me.DatePostedAutofill.Value = Me.EmpIDAutofill.Column(21)