>I would like to take some views out of my DE and use them only when I need them. I took one view out of my DE for a test and I am using this piece of code behind my print button.
>
>if not used(viewname)
> use (viewname) in 0
>else
> requery(viewname)
>endif
>
>I am getting the error file does not exist.
>
>With out this peice of code and the view in the DE eveything works fine.
>
>What I am doing wrong here.
>
>Thanks Randy
Reports have their own DE. Why don't you put the view there.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer