G
Guest
I have three combo boxes cboQuartile, cboRating, cboIncreasePercent. The user
selects a quartile and then a rating and then an increase percent. This part
works fine, but when I move to the next record it doesn't requery. I've
received lots of help getting this far and I need a little more to get over
the hump. I in over my head and could use some help. Thanks in advance. This
is what I have so far
Private Sub cboQuartile_AfterUpdate()
Me!cboRating = Null
Me!cboRating.Requery
On Error Resume Next
cboRating.RowSource = "Select Distinct [Increases6-18].Rating " & _
"From [Increases6-18] " & _
"WHERE [Increases6-18].Quartile = " & cboQuartile.Value & " " & _
"Order By [Increases6-18].Rating;"
Me!cboRating.Requery
End Sub
Private Sub cboRating_AfterUpdate()
Me!cboIncreasePercent = Null
Me!cboIncreasePercent.Requery
On Error Resume Next
Me!cboIncreasePercent.RowSource = _
"Select Distinct [Increases6-18].Increase_Percent " & _
"From [Increases6-18] " & _
"WHERE [Increases6-18].Rating = '" & Me!cboRating & "' " & _
"AND [Increases6-18].Quartile = " & Me!cboQuartile & _
" Order By [Increases6-18].Increase_Percent;"
End Sub
Private Sub Form_Current()
cboQuartile.Requery
cboRating.Requery
cboIncreasePercent.Requery
selects a quartile and then a rating and then an increase percent. This part
works fine, but when I move to the next record it doesn't requery. I've
received lots of help getting this far and I need a little more to get over
the hump. I in over my head and could use some help. Thanks in advance. This
is what I have so far
Private Sub cboQuartile_AfterUpdate()
Me!cboRating = Null
Me!cboRating.Requery
On Error Resume Next
cboRating.RowSource = "Select Distinct [Increases6-18].Rating " & _
"From [Increases6-18] " & _
"WHERE [Increases6-18].Quartile = " & cboQuartile.Value & " " & _
"Order By [Increases6-18].Rating;"
Me!cboRating.Requery
End Sub
Private Sub cboRating_AfterUpdate()
Me!cboIncreasePercent = Null
Me!cboIncreasePercent.Requery
On Error Resume Next
Me!cboIncreasePercent.RowSource = _
"Select Distinct [Increases6-18].Increase_Percent " & _
"From [Increases6-18] " & _
"WHERE [Increases6-18].Rating = '" & Me!cboRating & "' " & _
"AND [Increases6-18].Quartile = " & Me!cboQuartile & _
" Order By [Increases6-18].Increase_Percent;"
End Sub
Private Sub Form_Current()
cboQuartile.Requery
cboRating.Requery
cboIncreasePercent.Requery