data from previous record

S

Squibbly

how do i grab info from a previous record field or control and put it into
another field/control
 
G

Graham Mandeno

You can use the form's RecordsetClone to navigate to any record in the
form's recordset. For example:

With Me.RecordsetClone
If Me.NewRecord then
.MoveLast
Else
.BookMark = Me.Bookmark
.MovePrevious
If .BOF then .MoveFirst
End If
' your RecordsetClone is now on:
' the last record if you are on a new record
' the first record if you are on the first record
' otherwise, the previous record
Me![SomeField] = ![SomeField]
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top