G
Guest
In VFP I could include the line..
SET STEP ON
...in my code, and when it fired, the execution of teh code would transfer to
a window where I could step through the code a line at a time OR evaluate the
values of any variables that might be referenced there.
I have this code in the AfterUpdate of a ComboBox:
Private Sub cboProductFamily_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Product_ID] = " & Str(Nz(Me![cboProductFamily], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I understand what the code is saying just fine, but it is blowing up on the
line that begins "rs.FindFirst". I need to find out what value it is reading
in cboProductFamily so that I can decide what to do about it.
So the question is "What is the moral equivalent, in Access, of SET STEP ON,
and how would I use it?"
SET STEP ON
...in my code, and when it fired, the execution of teh code would transfer to
a window where I could step through the code a line at a time OR evaluate the
values of any variables that might be referenced there.
I have this code in the AfterUpdate of a ComboBox:
Private Sub cboProductFamily_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Product_ID] = " & Str(Nz(Me![cboProductFamily], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I understand what the code is saying just fine, but it is blowing up on the
line that begins "rs.FindFirst". I need to find out what value it is reading
in cboProductFamily so that I can decide what to do about it.
So the question is "What is the moral equivalent, in Access, of SET STEP ON,
and how would I use it?"