I have a ADO Recordset and I am looping through the fields of an original
recordset to create another one, however the Attributes property doesn't
seem to be created on the new record set (rs). Any ideas?
Here is the code:
'grs' is the Original Recordset
Dim fld as adodb.Field
Set rs = Nothing
rs.CursorLocation = adUseClient
For Each fld In grs.Fields
rs.Fields.Append fld.Name, fld.Type, fld.DefinedSize, fld.Attributes
Next
If I do a debug routine to see the values of the recordset they are all set
to 0. Something like this:
For Each fld In rs.Fields
Debug.Print fld.Name; fld.Attributes;
Next
Re: Accessing multiple fields in report function ... The only other option would seem to be to open a recordset,... The database already exists. ... >>> Dim Tbl As TableDef ... >>> For Each fld In Tbl.Fields ... (microsoft.public.access.modulesdaovba)
Re: list of fields and their names in a form, under Access 2000 (* I am lost! *) ... > the access to the ME.* and ME!* stuff and the ADODB declaration I thought ... > It seems that the DAO recordset declaration in my version of VBA has been ... > Dim fld As Field ... > For Each fld In Me.Recordset ... (microsoft.public.access.formscoding)
Re: This should be simple?? Get Field names ... With any code module open, select Tools | References from the menu bar, ... For example, to ensure that you get a DAO recordset, you'll need to ...Dim rsCurr As ADODB.Recordset) ... Dim dbs As DAO.Database, rst As DAO.Recordset, fld As DAO.Field, x As ... (microsoft.public.access.modulesdaovba)
Re: aus zwei verschiedenen Recordsets ...Private Sub Form_Load'Kleiner Test ...Dim Rs1 As Recordset, Rs2 As Recordset, RsJoin As Recordset, Fld As Field ... (microsoft.public.de.vb.datenbank)