prabha_friend
Prabhakaran Karuppaih
- Local time
- Today, 16:33
- Joined
- Mar 22, 2009
- Messages
- 933
Sub Test()
Dim myrset As Recordset
Dim temp As Variant
Set myrset = CurrentDb.OpenRecordset("SELECT * FROM Holidays;")
temp = myrset.GetRows(myrset.RecordCount)
MsgBox UBound(temp)
End Sub
I also tried with including the patrol (myrset.movelast and myrset.movefirst) before accessing the recordcount. Still its giving the UBound 0. But Recordcount is 2.
Dim myrset As Recordset
Dim temp As Variant
Set myrset = CurrentDb.OpenRecordset("SELECT * FROM Holidays;")
temp = myrset.GetRows(myrset.RecordCount)
MsgBox UBound(temp)
End Sub
I also tried with including the patrol (myrset.movelast and myrset.movefirst) before accessing the recordcount. Still its giving the UBound 0. But Recordcount is 2.