Help with Variable Type

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

Can somebody please help me to place the correct variable type into
this declaration statement?

Dim da As ???? = New SqlDataAdapter("SELECT pub_id FROM
publishers")

I'm trying to capture the records from this table so that I can use
them to fill a combobox. Let me know if you need any futher
information.

Thanks.
 
Can somebody please help me to place the correct variable type into
this declaration statement?

Dim da As ???? = New SqlDataAdapter("SELECT pub_id FROM
publishers")

\\\
Dim da As SqlDataAdapter = New SqlDataAdapter("SELECT ...")
///

or

\\\
Dim da As New SqlDataAdapter("SELECT ...")
///

....although you'll need to pass in a SqlConnection object in your
constructor parameters too.
 
Back
Top