>I think I understand what you are saying, so wouldn't the following determine wether or not the view is open?
>
>if used("viewname")
> if juststem(cursorgetprop("database", "viewname")) = "source"
> wait window "source!viewname is open" nowait
> else
> wait window "viewname is from a different database" nowait
> endif
>else
> use source!viewname in 0
>endif
This will work. cursorgetprop will return the name of the database of the currently open view, not rather a view (as I thought) existed as part of the database.
"There's always more than one way to do things!"
Thanks for your patience, Neil!
--Todd Sherman
-Wake Up! Smell the Coffee!