Как я должен решить "system.data.oledb.oledbexception: 'нет значения для одного или нескольких требуемых параметров"?
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim c As Control For Each c In Me.Controls If TypeOf (c) Is PictureBox Then CType(c, PictureBox).Image = availableIcon AddHandler c.Click, AddressOf PictureBox7_Click End If Next Dim stSQL As String stSQL = "SELECT BookingID, Customer, Set FROM tblBOokings" Dim stConString As String stConString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\kalea\Documents\Access Database\BookingSystem.accdb" Dim conBookings As OleDbConnection conBookings = New OleDbConnection conBookings.ConnectionString = stConString conBookings.Open() Dim cmdSelectBookings As OleDbCommand cmdSelectBookings = New OleDbCommand cmdSelectBookings.CommandText = stSQL cmdSelectBookings.Connection = conBookings 'Dim cmdSelectBookings As New As New OleDbCommand(stSQL, conBookings) Dim dsBookings As New DataSet Dim daBookings As New OleDbDataAdapter(cmdSelectBookings) daBookings.Fill(dsBookings, "Bookings") conBookings.Close()
Что я уже пробовал:
Я получаю эту ошибку в:
daBookings.Заполнение(dsBookings, "бронирование")
Интересно, может ли кто-нибудь понять это?