Visual Studio Access "istenilen değeri fazla" hatası

Kodun tamamını atınız.
Daha tamamını yazmadım sadece cmd de hata var diye durdum.
C#:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;

namespace W1Apps
{
    public partial class Form1 : Form
    {
        OleDbConnection conn;
        OleDbCommand.cmd;
        OleDbDataAdapter adapter;


        public Form1()
        {
            InitializeComponent();
        }

        void Personeller()
        {

        }



        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {

        }

        private void textBoxArama_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
 
Şu kısmı böyle yapın;

C#:
OleDbConnection conn;
OleDbCommand cmd;
OleDbDataAdapter adapter;
 
Tüm işlemleri yapın, hata alırsanız yazabilirsiniz. Yardımcı olacağım.
Videodaki 5.10 saniyesinde hata alıyorum kod bu
C#:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;

namespace W1Apps
{
    public partial class Form1 : Form
    {
        OleDbConnection conn;
        OleDbCommand cmd;
        OleDbDataAdapter adapter;
        DataTable dt;


        public Form1()
        {
            InitializeComponent();
        }

        void Personeller()
        {
            conn = new OleDbConnection("Provider=Microsoft.ACE.OleDb.16.0; Data Source=Data1.accdb");
            dt = new DataTable();
            conn.Open();
            adapter.Fill(dt);
            dgwPersonel.DataSource = dt;
            conn.Close();
        }



        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {

        }

        private void textBoxArama_TextChanged(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Personeller();
        }
    }
}
 
Kodunuz yanlış. Video içinde yazılan kodları iyi izleyin, video içerisinde olan tüm işlemleri yapın. Programı 64 bit moda geçirin. Video içinde 5.10'dan sonra gösteriyor nasıl yapacağını.
 
Kodunuz yanlış. Video içinde yazılan kodları iyi izleyin, video içerisinde olan tüm işlemleri yapın. Programı 64 bit moda geçirin. Video içinde 5.10'dan sonra gösteriyor nasıl yapacağını.
Hocam başka bir proje için sorum olacaktı. Veriyi sürükleyerek aktarıyorum veriyi düzgün bir şekilde yansıtıyor fakat düzenledikten sonra kaydedince hata alıyorum.
Hata
Kod:
System.Data.OleDb.OleDbException: ''Microsoft.ACE.OLEDB.12.0', hata iletisi olmadan başarısız oldu, sonuç kodu: E_OUTOFMEMORY(0x8007000E).'



Kodum
C#:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ArabaKiralama
{
    public partial class MstrForm : Form
    {
        public MstrForm()
        {
            InitializeComponent();
        }


        private void MstrForm_Load(object sender, EventArgs e)
        {
            // TODO: Bu kod satırı 'verilerDataSet.Tablo1' tablosuna veri yükler. Bunu gerektiği şekilde taşıyabilir, veya kaldırabilirsiniz.
            this.tablo1TableAdapter.Fill(this.verilerDataSet.Tablo1);


        }

        private void tablo1BindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.tablo1BindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.verilerDataSet); "HATA ALDIĞIM YER"

        }
    }
}
 

Technopat Haberler

Geri
Yukarı