U
UZI49
Hi,
I want to retreive the first 5 values of a field programmatically,
the following is the code I have written so far, I dont know what to do next,
Kindly Help,
Dim dbs As DAO.Database
Dim tdf As DAO.Recordset
Dim fld As DAO.Field
Dim a As Variant
Dim size As Variant
Set dbs = CurrentDb
Set tdf = dbs.OpenRecordset("testtab")
With tdf
Debug.Print .RecordCount
Set fld = tdf!Field13
Debug.Print fld.Name
Debug.Print fld.size
Debug.Print fld.Value
Debug.Print fld.Type
a = fld.Value
Debug.Print a
End With
I want to retrieve first 5 values from fld and use them, fld.Value only
retrives the first value from the column fld, what should I do?
Thanks
Zeesh
I want to retreive the first 5 values of a field programmatically,
the following is the code I have written so far, I dont know what to do next,
Kindly Help,
Dim dbs As DAO.Database
Dim tdf As DAO.Recordset
Dim fld As DAO.Field
Dim a As Variant
Dim size As Variant
Set dbs = CurrentDb
Set tdf = dbs.OpenRecordset("testtab")
With tdf
Debug.Print .RecordCount
Set fld = tdf!Field13
Debug.Print fld.Name
Debug.Print fld.size
Debug.Print fld.Value
Debug.Print fld.Type
a = fld.Value
Debug.Print a
End With
I want to retrieve first 5 values from fld and use them, fld.Value only
retrives the first value from the column fld, what should I do?
Thanks
Zeesh