Ifrs1.Read() Thendim theRecord asInteger = rs1("AlbumArtistID")
End Ifrs1.Close()
'============Then use this down the page.========
getAlbumID.Parameters.Add(New SqlParameter("@ID", rs1("ID")))
Resolve Issue
If you are going to close your Reader / Dataset and intend to make a call to the record, you will need to create a Global Variable.
[ASP.NET - VB Reader Object with a Global Variable]