andrewf10
Registered User.
- Local time
- Today, 00:08
- Joined
- Mar 2, 2003
- Messages
- 114
Hi, I know I'll probably have to wait until Access 2015 is released but has anyone ever come across a way of hiding record selectors on a form and handling it through code instead?
I'd like to test if a record is locked when it's made current and if so, produce a message box. I thought it would've gone like this but obviously not! Thanks
*************************************************
Private Sub Form_Current()
On Error GoTo Err_Form_Current
If Me.CurrentRecord.Locked = True Then
Msgbox "Record is currently locked."
End If
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox Err.Number, Err.Description
Resume Exit_Form_Current
End Sub
I'd like to test if a record is locked when it's made current and if so, produce a message box. I thought it would've gone like this but obviously not! Thanks
*************************************************
Private Sub Form_Current()
On Error GoTo Err_Form_Current
If Me.CurrentRecord.Locked = True Then
Msgbox "Record is currently locked."
End If
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox Err.Number, Err.Description
Resume Exit_Form_Current
End Sub