G
Guest
I have a continuous form with two combo boxes, the second comb box list is
dependent on what is selected in the first one. The second one does populate
correctly - but all the rows change depending on the selection made rather
than just the row that I'm entering date into! Need some guidance on this.
Using Access2003 - code below from 2nd combo box which I'm assuming - maybe
incorrectly - is the problem. Thanks! Jani
Private Sub AgitationType_AfterUpdate()
Dim cnn As ADODB.Connection
Dim rsSnap As New ADODB.Recordset
Set cnn = CurrentProject.Connection
' Open Snapshot type
rsSnap.Open "dbo_uAgitationByVess", cnn, adOpenStatic
rsSnap.Find "AgitationType = '" & Me!AgitationType & "'"
Me!MixingVesselType = rsSnap!MixingVesselType
AgitationType.Requery
rsSnap.Close
End Sub
dependent on what is selected in the first one. The second one does populate
correctly - but all the rows change depending on the selection made rather
than just the row that I'm entering date into! Need some guidance on this.
Using Access2003 - code below from 2nd combo box which I'm assuming - maybe
incorrectly - is the problem. Thanks! Jani
Private Sub AgitationType_AfterUpdate()
Dim cnn As ADODB.Connection
Dim rsSnap As New ADODB.Recordset
Set cnn = CurrentProject.Connection
' Open Snapshot type
rsSnap.Open "dbo_uAgitationByVess", cnn, adOpenStatic
rsSnap.Find "AgitationType = '" & Me!AgitationType & "'"
Me!MixingVesselType = rsSnap!MixingVesselType
AgitationType.Requery
rsSnap.Close
End Sub