OK - not what I wanted, but something worth noting:

This change will allow you to open an existing query, in a query design window using the active connection.

Sub Test( aQueryName as string, aConnection as variant )

   oDesktop = createUnoService("com.sun.star.frame.Desktop")
Dim aURL as New com.sun.star.util.URL
   aURL.Complete = ".component:DB/QueryDesign"
oDispatchObject = oDesktop.queryDispatch(_
                       aURL, _
                       "_BLANK",_
                       com.sun.star.frame.FrameSearchFlag.CREATE)
Dim aProps(2) as New com.sun.star.beans.PropertyValue
   aProps(0).Name = "ActiveConnection"
aProps(0).Value = aConnection aProps(1).Name = "QueryDesignView"
   aProps(1).Value = TRUE
   aProps(2).Name  = "CurrentQuery"
   aProps(2).Value = aQueryName
oDispatchObject.dispatch(aURL, aProps)

End Sub

Now to get the FormGridView to load up with the data from a query and I'm 
done!!!







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to