"JJ297" <(E-Mail Removed)> wrote in message
news:201a0f71-9eaf-462e-a001-(E-Mail Removed)...
> I'm getting:
> Local variable 'adapter' is already declared in the current block for:
> Dim adapter As New Data.SqlClient.SqlDataAdapter(cmdTopic)
> and
> Dim adapter As New Data.SqlClient.SqlDataAdapter(cmdMedia)
That means exactly what it says - you are trying to declare two variables
with the same name within the same scope.
Dim adapter1 As New Data.SqlClient.SqlDataAdapter(cmdTopic)
Dim adapter2 As New Data.SqlClient.SqlDataAdapter(cmdMedia)
should fix it, though it's not particularly elegant or efficient...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net