Hi everyone, the following code is meant to grab some data from my sql server database and return it in a dataset from the function, at the moment though, it fails highlightint the fill line with the following:

vb(37): Value of type '1-dimensional array of System.Data.DataSet' cannot be converted to 'String'.

VB Code:
  1. Public Function ViewAllFlightDetails() As Data.DataSet()
  2.  
  3.     Dim strSQL As String
  4.     Dim objDAFlightInfo As SqlClient.SqlDataAdapter
  5.  
  6.     strSQL = "SELECT * FROM aTable"
  7.     objDAFlightInfo = New SqlClient.SqlDataAdapter(strSQL, gstrDEVSQLSERVERCONN)
  8.  
  9.     If Not (objDAFlightInfo Is Nothing) Then
  10.         objDAFlightInfo.Fill(New Data.DataSet(ViewAllFlightDetails))
  11.     End If
  12.  
  13. End Function

Can anyone shed some light on what could be behind this problem? Thanks!