amorosik
Member
- Local time
- Tomorrow, 00:45
- Joined
- Apr 18, 2020
- Messages
- 540
I have a continuous form, with two fields on each line,
-read_number
-table_name
The form is fed from a recordset that I loaded earlier with the following code
---------------------------------------
Set MyRsAdoDb = New ADODB.Recordset
MyRsAdoDb.Fields.Append "read_number", adInteger
MyRsAdoDb.Fields.Append "table_name", adVarChar,250
MyRsAdoDb.Open , , adOpenDynamic, adLockOptimistic
MyRsAdoDb.AddNew Array("read_number", "table_name"), Array(count, tdf.name)
MyRsAdoDb.Sort = "asc table_name"
Set Me.Recordset = MyRsAdoDb
---------------------------------------
in the form the data are seen correctly, as expected
Now it's time to print and so the question is:
how to pass the recordset as created above to the report (the MyrsAdoDb to understand)?
There is a way to make the report see it as a table/query of the db and therefore the possibility to choose the name of the field on the ControlSource of the textbox placed on the report?
-read_number
-table_name
The form is fed from a recordset that I loaded earlier with the following code
---------------------------------------
Set MyRsAdoDb = New ADODB.Recordset
MyRsAdoDb.Fields.Append "read_number", adInteger
MyRsAdoDb.Fields.Append "table_name", adVarChar,250
MyRsAdoDb.Open , , adOpenDynamic, adLockOptimistic
MyRsAdoDb.AddNew Array("read_number", "table_name"), Array(count, tdf.name)
MyRsAdoDb.Sort = "asc table_name"
Set Me.Recordset = MyRsAdoDb
---------------------------------------
in the form the data are seen correctly, as expected
Now it's time to print and so the question is:
how to pass the recordset as created above to the report (the MyrsAdoDb to understand)?
There is a way to make the report see it as a table/query of the db and therefore the possibility to choose the name of the field on the ControlSource of the textbox placed on the report?