Private Sub Form_Load() Dim rs As New ADODB.Recordset Set oconn = New ADODB.Connection oconn.Open "Provider=msdaora.1;Data Source=192.168.1.46;User Id=MaintBr_Electric;Password=sa;Persist Security Info=True" rs.CursorType = adOpenStatic rs.CursorLocation = adUseClient rs.LockType = adLockOptimistic rs.Open strSQL, oconn, , , adCmdText Set DataGrid1.DataSource = rs
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)