parry
MrExcel MVP
- Joined
- Aug 20, 2002
- Messages
- 3,355
Hi, I have a Tab Control in a form that is resizing. The form is opened as read only, and if the User selects an Edit button, they are then able to edit the record.
For some reason the Tab Control is dropping down when switching to Edit mode.
Heres the code for the Edit button - any ideas on why form is resizing?
Private Sub Command211_Click()
On Error GoTo Err_Command211_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Forms!Form_enter_edit_record.Refresh
Forms!formsearch.Refresh
Exit_Command211_Click:
Exit Sub
Err_Command211_Click:
MsgBox "Please Click the Edit Button to Delete"
Resume Exit_Command211_Click
End Sub
For some reason the Tab Control is dropping down when switching to Edit mode.
Heres the code for the Edit button - any ideas on why form is resizing?
Private Sub Command211_Click()
On Error GoTo Err_Command211_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Forms!Form_enter_edit_record.Refresh
Forms!formsearch.Refresh
Exit_Command211_Click:
Exit Sub
Err_Command211_Click:
MsgBox "Please Click the Edit Button to Delete"
Resume Exit_Command211_Click
End Sub