Hi,
My application crashes when trying to change the value of a text box in a continuous form. Here is the code:
If I replace .txtUnitCost by MsgBox .txtUnitCost, it loops correctly through each record and returns the value. But if I try to change the value as shown in above code, MS Access crashes!
(This is a desktop application with tables linked to SP lists - not a web app)
Cross:
http://www.utteraccess.com/forum/Loop-Continuous-Form-Rec-t2019350.html#entry2472070
http://www.accessforums.net/forms/loop-through-continuous-form-recordset-crash-44959.html#post233489
My application crashes when trying to change the value of a text box in a continuous form. Here is the code:
Code:
Private Sub cboPoCurrency_AfterUpdate()
On Error GoTo ErrHandler
Dim rst As Recordset
With Me.sbfProductDetails.Form
Set rst = .Recordset
rst.MoveFirst
Do While Not rst.EOF
.txtUnitCost = 1
rst.MoveNext
Loop
End With
Set rst = Nothing
ExitSub:
Exit Sub
ErrHandler:
Call ErrorAlert
Resume ExitSub
End Sub
If I replace .txtUnitCost by MsgBox .txtUnitCost, it loops correctly through each record and returns the value. But if I try to change the value as shown in above code, MS Access crashes!
(This is a desktop application with tables linked to SP lists - not a web app)
Cross:
http://www.utteraccess.com/forum/Loop-Continuous-Form-Rec-t2019350.html#entry2472070
http://www.accessforums.net/forms/loop-through-continuous-form-recordset-crash-44959.html#post233489