Hi all, please share your knowloedge about my item if someone knows.
Have a question. I migrated to MS SQL BE and no I am trying to move all my reports queries to SQL Server as well and need to know how to assign recordset of the report that way that it will run on directly on SQL Server because they are running very slow. I created code:
Dim rs As ADODB.Recordset
Set cnn = CurrentProject.AccessConnection Set rs = New ADODB.Recordset
rs.Open MainCode, cnn
'Set the report's Recordset property to the ADO recordset
Set Me.Recordset = rs
Set rs = Nothing
Set cnn = Nothing
MainCode here is a SQL statement that I cam assembling in VB. This Me.Recordset doesn't work and gives me error "This feature only available in ADP". How can I run report with query directly from SQL Server? Thank you, Tim.
Have a question. I migrated to MS SQL BE and no I am trying to move all my reports queries to SQL Server as well and need to know how to assign recordset of the report that way that it will run on directly on SQL Server because they are running very slow. I created code:
Dim rs As ADODB.Recordset
Set cnn = CurrentProject.AccessConnection Set rs = New ADODB.Recordset
rs.Open MainCode, cnn
'Set the report's Recordset property to the ADO recordset
Set Me.Recordset = rs
Set rs = Nothing
Set cnn = Nothing
MainCode here is a SQL statement that I cam assembling in VB. This Me.Recordset doesn't work and gives me error "This feature only available in ADP". How can I run report with query directly from SQL Server? Thank you, Tim.