Compilation Error - BC30518: Overload resolution failed

Joined
May 16, 2007
Messages
1
Reaction score
0
I'm working in VS.NET 2003. The variable DID is a string variable that is passdi

The full error is:

BC30518: Overload resolution failed because no accessible 'New' can be called with these arguments:

The code that fires this up is:

Dim strdgUInfo as String = "SELECT L.ID, L.Name, L.City, L.State, L.YearGraduated, L.D_ID FROM UInfo L WHERE L.D_ID = " & DID

Dim cb as SqlCommandBuilder
'SqlDataAdapter dgUInfoAdapter = new SqlDataAdapter (strdgUInfo, objConnection)
Dim dgUInfoAdapter as SqlDataAdapter
--> --> dgUInfoAdapter = New SqlDataAdapter(strdgUInfo, objConnection)

'DataSet dsdgUInfo = new DataSet()
Dim dsdgUInfo as DataSet
dsdgUInfo = new DataSet()

dgUInfoAdapter.Fill(dsdgUndergradInfo, "dtdgUndergradInfo")

dgUInfo.DataSource = dsdgUInfo.Tables["dtdgUInfo"]
dgUInfo.DataBind();

----------------------------------

Any assistance is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top