H
Humphrey
I'm getting there...
I'm trying to iterate between all the views in the form and print each view
to PDF via code.
allViews = Me.ViewInfos
For a = 0 To allViews.Count - 1
strViewName = Me.ViewInfos(a).Name
Me.ViewInfos.SwitchView(strViewName)
.....
Next
The code itself seems to work in that it will select the name of each of the
views in turn in the strViewName variable, however the switchview only works
for the first item through the loop. In this case it is the data entry view.
The data presentation views are never selected.
What am I missing here? I read somewhere you can only change the view once
in code but this would not make sense. Any help would be appreciated.
H
I'm trying to iterate between all the views in the form and print each view
to PDF via code.
allViews = Me.ViewInfos
For a = 0 To allViews.Count - 1
strViewName = Me.ViewInfos(a).Name
Me.ViewInfos.SwitchView(strViewName)
.....
Next
The code itself seems to work in that it will select the name of each of the
views in turn in the strViewName variable, however the switchview only works
for the first item through the loop. In this case it is the data entry view.
The data presentation views are never selected.
What am I missing here? I read somewhere you can only change the view once
in code but this would not make sense. Any help would be appreciated.
H