Expand|Select|Wrap|Line Numbers
- Private Sub Form_Current()
- Dim rs As Object
- Set rs = Me.Recordset.Clone
- If rs.EOF Or Not Me.NewRecord Then
- ' don't do anything if there's no records or it is not a new record
- Else
- With rs
- .MoveLast
- Me![LotNumber] = .Fields("LotNumber")
- Me![Description] = .Fields("Description")
- Me![SalePrice] = .Fields("SalePrice")
- End With
- End If
- End Sub
I would like to add a checkbox to the form that when checked or unchecked would turn this code on or off. I have read through the forums and I can't find anything that is relevant to my situation. I have also played around with it myself, but I just don't know enough programming to figure it out myself. Any help will be greatly appreciated.
Thanks!
Lori