To say I'm new is an understatement - but somehow my boss decided I was the one to create a database in Access 2003...I'm nearly there. I have a small problem in that I have locked the main form (although not yet the subform) using:
Then I have an Edit Button that folks can push to change data as needed - using:
But I have a lookup box that shows all the students - I need to be able to have people navigate to the record using the Lookup, without yet being able to edit. But the Lookup is locked until the Edit Button is pushed. I would like them to use the Lookup, select the student and have the data load into the form - without them being able to edit it until the push the Edit Button. FYI the Lookup is part of the Main Form.
Is this possible?
Thanks!
Code:
Private Sub Form_Current()
If Me.NewRecord Then
Me.AllowEdits = True
Else
Me.AllowEdits = False
End If
End Sub
Code:
Sub cmdEdit_Click
On Error GoTo Err_cmdEdit_Click
Me.AllowEdits = True
Exit_cmdEdit_Click:
Exit Sub
Err_cmdEdit_Click:
MsgBox Err.Description
Resume Exit_cmdEdit_Click
End sub
Is this possible?
Thanks!
Comment