I have a form that is used to maintain 13 periods of data for a given year. Because data is often the same for each period, it is efficient to have a command button that allows the end-user to click and populate all 13 periods with the value in a single data element.
For example, if I place the string "XMe" in Period 1 data field, and click the "FILL DOWN" Command, all 13 periods are updated with the "XMe" string.
The difficulty is all 13 periods are combo boxes with a list. Each period's combo box is Limit to List = NO. Bound column =1.
The code crashes when the following is executed:
Private Sub cmdFillDown_Click()
Dim sFillValue As String
Me![Per01].SetFocus
sFillValue = Me![Per01].Text
Me![Per02].SetFocus
Me![Per02].Text = sFillValue
.
.
.
Me![Per13].SetFocus
Me![Per13].Text = sFillValue
To recap: What must I do to allow a ComboBox to be filled with sFillValue?
MS Access 97 version.
For example, if I place the string "XMe" in Period 1 data field, and click the "FILL DOWN" Command, all 13 periods are updated with the "XMe" string.
The difficulty is all 13 periods are combo boxes with a list. Each period's combo box is Limit to List = NO. Bound column =1.
The code crashes when the following is executed:
Private Sub cmdFillDown_Click()
Dim sFillValue As String
Me![Per01].SetFocus
sFillValue = Me![Per01].Text
Me![Per02].SetFocus
Me![Per02].Text = sFillValue
.
.
.
Me![Per13].SetFocus
Me![Per13].Text = sFillValue
To recap: What must I do to allow a ComboBox to be filled with sFillValue?
MS Access 97 version.