T
tinman
Hi...
Is it better to access the data via its ordinal or field name?
For example, is Option A or B the preferred way ? My concern here is what
will
happen if the resultset order changes?
Option A:
While ProjectData.Read
m_ProjectName = ProjectData("proj_name")
m_ProjectType = ProjectData("type")
m_Reason = ProjectData("reason")
End While
Option B:
With ProjectData
While .Read
m_ProjectName = .Item("1")
m_ProjectType = .Item("2")
m_Reason = .Item("3")
End While
End With
Thanks..
Is it better to access the data via its ordinal or field name?
For example, is Option A or B the preferred way ? My concern here is what
will
happen if the resultset order changes?
Option A:
While ProjectData.Read
m_ProjectName = ProjectData("proj_name")
m_ProjectType = ProjectData("type")
m_Reason = ProjectData("reason")
End While
Option B:
With ProjectData
While .Read
m_ProjectName = .Item("1")
m_ProjectType = .Item("2")
m_Reason = .Item("3")
End While
End With
Thanks..