Article ID: 183628
Article Last Modified on 5/10/2006
Private Sub Command1_Click()
Dim rs As New ADODB.Recordset
rs.Open "Select * from Products", _
"Provider=MS Remote;Remote Server=http://ServerXX;DSN=Advworks"
While Not rs.EOF
MSFlexGrid1.AddItem rs(0) & vbTab & rs(1)
rs.MoveNext
Wend
End Sub
The preceding sample code uses the Advworks DSN that uses the Microsoft
Access driver to access the Advworks database that installs with the MDAC
components. Later versions of MDAC may not install this database and the dsn.
Create your own system dsn for an Access database on the server. 184237 PRB: Unable to Open Registry Key DriverID Error with Advworks
Keywords: kbhowto KB183628