G
Guest
I have tried to apply a suggestion from another post, but cant get this to
work. I wish to have a button on a main form that toggles the view of a
subform between continuous form view and datasheet view. The following, of
which, was posted in a previous thread, is what i have tried:
Select Case Screen.ActiveForm.CurrentView
Case 1
' Currently in form view
RunCommand acCmdDatasheetView
Case 2
' Currently in datasheet view
RunCommand acCmdFormView
Case Else
' Must be design view (0) or some as yet undefined view
' Do nothing.
End Select
work. I wish to have a button on a main form that toggles the view of a
subform between continuous form view and datasheet view. The following, of
which, was posted in a previous thread, is what i have tried:
Select Case Screen.ActiveForm.CurrentView
Case 1
' Currently in form view
RunCommand acCmdDatasheetView
Case 2
' Currently in datasheet view
RunCommand acCmdFormView
Case Else
' Must be design view (0) or some as yet undefined view
' Do nothing.
End Select