You are still treating the date like a string. Rather than splitting things and extracting numbers, use the Year, Month and Day properties. Or just skip all that and use a parameter rather than string concatenation to supply the date:
Code:
Dim queryString As String = "SELECT [tblAirLineBudget].[AirLine], [tblAirLineBudget].[Event], " & _
"[tblAirLineBudget].[SalesManager], [tblAirLineBudget].[Description], [tblAirLineBudget].[Event], " & _
"[tblAirLineBudget].[PC], [tblAirLineBudget].[Type], [tblAirLineBudget].[Market], " & _
"[tblAirLineBudget].[Cost] FROM [tblAirLineBudget] " & _
"WHERE [tblAirLineBudget].[EventDate] = @date"
Dim dbCommand As System.Data.IDbCommand = New System.Data.OleDb.OleDbCommand
dbCommand.CommandText = queryString
dbCommand.Connection = dbConnection
dbCommand.Parameters.AddWithValue("@date", Calendar.SelectedDate);
Bookmarks