> > *********************************
> >
[quoted text clipped - 17 lines]
> PPTools: www.pptools.com
> ================================================
Stupid OfficeDataSourceObject doesn't work at all.
If anyone cares, Here's how to do it, just make sure you include "Microsoft
ActievX Data Objects 2.x" reference in you workbook, PPT or Document
--------------------------------
Sub tester()
Dim rst As New ADODB.Recordset
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
cnn.ConnectionString = "Provider=Microsoft.Access.OLEDB.10.0;Persist
Security Info=True;Data Source=10.15.1.66\Refresh;User
ID=UserName;Password=Passowrd;Initial Catalog=DatabaseName;Data
Provider=SQLOLEDB.1"
cnn.Open
rst.Open "tblName", cnn
rst.Close
cnn.Close
End Sub
----------------------------------
Seriously, I think its about time I became an MVP :S
Mr.Smith
Steve Rindsberg - 06 Jun 2006 15:56 GMT
> Stupid OfficeDataSourceObject doesn't work at all.
I expect it does somehow or another but there's very little documentation on any of
this stuff that seems to have any relationship to the real world. Never have so
many expended so many words doing so little for so few. ;-)
Here's another take on this, by the way:
Controlling Office Applications from PowerPoint (by Access MVP Naresh Nichani)
http://www.rdpslides.com/pptfaq/FAQ00795.htm