Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ZOOM button 1

Status
Not open for further replies.

EEDirect

Technical User
May 19, 2005
18
Hello there. I am in need of a button to open (or ZOOM) my notes field. I can't seem to figure out the code. Can someone offer some advise?

thks.

Thanks & Regards,
EEDirect
 
Zoom the selected control
Code:
Private Sub cmdZoom_Click()
  Call zoomCtrl
End Sub

Public Sub zoomCtrl()
  Dim ctrl As Access.Control
  Set ctrl = Screen.PreviousControl
  If ctrl.ControlType = acTextBox Or ctrl.ControlType = acComboBox Or ctrl.ControlType = acListBox Then
     ctrl.SetFocus
     DoCmd.RunCommand acCmdZoomBox
  End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top