I'm trying to figure out how the recordset object works. How do you read through a recordset and capture variables? I have the rst open but I can't get anything to display.
Dim rstTemp As DAO.Recordset
Set rstTemp = CurrentDb.OpenRecordset("SELECT * FROM Agent WHERE [SITE]='GGTF'"
Dim vararray As Variant
rstTemp.MoveFirst
Set vararray = rstTemp.GetRows(1)
msgbox vararray
rstTemp.Close
My question is as cryptic as my code. Thanks for any help.
Rus
Dim rstTemp As DAO.Recordset
Set rstTemp = CurrentDb.OpenRecordset("SELECT * FROM Agent WHERE [SITE]='GGTF'"
Dim vararray As Variant
rstTemp.MoveFirst
Set vararray = rstTemp.GetRows(1)
msgbox vararray
rstTemp.Close
My question is as cryptic as my code. Thanks for any help.
Rus