I have 5 rows of combo boxes, each row has 5 combo boxes and a button. When a user clicks a rows button I need all the values of the combo boxes in the rows below to move up one row.
I have it set this way now, but there must be a better way to program this?
This is the code in the first row button.
Me.cbotbl2 = Me.cbotbl3
Me.cbotbl3 = Me.cbotbl4
Me.cbotbl4 = Me.cbotbl5
Me.cbotbl5 = Me.cbotbl6
Me.cbotbl6 = Null
Me.cboJF1A = Me.cboJF2A
Me.cboJF2A = Me.cboJF3A
Me.cboJF3A = Me.cboJF4A
Me.cboJF4A = Me.cboJF5A
Me.cboJF5A = Null
Me.cboJtbl1 = Me.cboJtbl2
Me.cboJtbl2 = Me.cboJtbl3
Me.cboJtbl3 = Me.cboJtbl4
Me.cboJtbl4 = Me.cboJtbl5
Me.cboJtbl5 = Null
Me.cboJF1B = Me.cboJF2B
Me.cboJF2B = Me.cboJF3B
Me.cboJF3B = Me.cboJF4B
Me.cboJF4B = Me.cboJF5B
Me.cboJF5B = Null
Me.cboJoinType1 = Me.cboJoinType2
Me.cboJoinType2 = Me.cboJoinType3
Me.cboJoinType3 = Me.cboJoinType4
Me.cboJoinType4 = Me.cboJoinType5
Me.cboJoinType5 = Null
I have it set this way now, but there must be a better way to program this?
This is the code in the first row button.
Me.cbotbl2 = Me.cbotbl3
Me.cbotbl3 = Me.cbotbl4
Me.cbotbl4 = Me.cbotbl5
Me.cbotbl5 = Me.cbotbl6
Me.cbotbl6 = Null
Me.cboJF1A = Me.cboJF2A
Me.cboJF2A = Me.cboJF3A
Me.cboJF3A = Me.cboJF4A
Me.cboJF4A = Me.cboJF5A
Me.cboJF5A = Null
Me.cboJtbl1 = Me.cboJtbl2
Me.cboJtbl2 = Me.cboJtbl3
Me.cboJtbl3 = Me.cboJtbl4
Me.cboJtbl4 = Me.cboJtbl5
Me.cboJtbl5 = Null
Me.cboJF1B = Me.cboJF2B
Me.cboJF2B = Me.cboJF3B
Me.cboJF3B = Me.cboJF4B
Me.cboJF4B = Me.cboJF5B
Me.cboJF5B = Null
Me.cboJoinType1 = Me.cboJoinType2
Me.cboJoinType2 = Me.cboJoinType3
Me.cboJoinType3 = Me.cboJoinType4
Me.cboJoinType4 = Me.cboJoinType5
Me.cboJoinType5 = Null