NigelBishop
New member
- Local time
- Today, 09:44
- Joined
- Oct 4, 2019
- Messages
- 14
I have been able to retrieve records from a SQL server and populate a continuous form with the following code
Code:
Dim conn As ADODB.Connection
Dim cmd As ADODB.Command
Set conn = New ADODB.Connection
conn.Open "Provider=SQLOLEDB.1;Initial Catalog=IPTTrackerBE;Data Source=PHE-3J021434H;Integrated Security=SSPI;"
Set cmd = New ADODB.Command
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient
rs.Open "EXEC sp_Select_from_table T_IPTTrackerActionItems", conn
Set Me.Recordset = rs
[CODE]
:)
I have tried to use the same code in the on load event of a report but it does not return any results :confused:
Thank you in advance for any suggestions