Expand|Select|Wrap|Line Numbers
- Dim rs As DAO.Recordset
- If Not IsNull(Me.cboMoveTo) Then
- 'Save before move.
- If Me.Dirty Then
- Me.Dirty = False
- End If
- 'Search in the clone set.
- Set rs = Me.RecordsetClone
- rs.FindFirst "[Reference #] = " & Me.cboMoveTo
- If rs.NoMatch Then
- MsgBox "Reference # not found. Please re-enter."
- Else
- 'Display the found record in the form.
- Me.Bookmark = rs.Bookmark
- Forms!Master!Frame147.Value = 4
- Forms!Master!txtHidden.Value = "Locked"
- Me.Text229 = ""
- DoCmd.RunCommand acCmdSaveRecord
- End If
- End If
- Set rs = Nothing
If one user is creating new records and say another user goes on break and comes back 20 minutes later and tries to call up one of the records that the user inputed, it comes up with "Reference # not found. Please re-enter.", which is the message I have for if the reference number is not found.
EVERYTHING about this code works excellent except this one small hickup! The only way I've found to solve it is to completely exit that form and reopen it, so it has to be some type of update issue.
I've tried:
Expand|Select|Wrap|Line Numbers
- DoCmd.RunCommand acCmdSaveRecord
Nothing other than completely exiting and reopening has worked!
Any ideas???