jordanking
Programmer
- Sep 8, 2005
- 351
Hello,
I have a report that is based on a dynamically generated recordset, but the filds in the report are all empty. They are all named correctly and have the right field name for control source.
The report has the right number of rows (178), but they are all blnak
has anyone encountered this?
here is my code
DMS_Residential_DriverList_Get is teh name of a custom function that returns a adodb recordset
.....
I'd rather be surfing
I have a report that is based on a dynamically generated recordset, but the filds in the report are all empty. They are all named correctly and have the right field name for control source.
The report has the right number of rows (178), but they are all blnak
has anyone encountered this?
here is my code
Code:
Private Sub Report_Open(Cancel As Integer)
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
''''initialise connection string and open connection
cnn.Open Application.CurrentProject.Connection
Set rs = DMS_Residential_DriverList_Get(cnn, Forms!frmReport!dtDriverList)
Debug.Print rs.RecordCount
Debug.Print rs.Fields(0)
Set Me.Recordset = rs
End Sub
DMS_Residential_DriverList_Get is teh name of a custom function that returns a adodb recordset
.....
I'd rather be surfing