Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB.Net Write to Imported Access Database

Hey y'all,

I am in a VB.Net class at university. I am trying to finish up an assignment where I have an access database with a table and some data within that table.

I have already imported the database into my VB.Net application and I can already sort through all the records and everything.

I am trying to figure out how I can enter information into my form and it write to the database as a new entry?


If you need more clarification, let me know. I need help figuring this out ASAP.
to show it you need to load it to listview for example http://www.vb-helper.com/howto_net_load_...om_db.html
then you can save the listview to database or file
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
I'm not 100% sure what you want, but I think you mean this :

Code
       DataClasses1DataContext db = new DataClasses1DataContext();
       public MainWindow()
       {
           InitializeComponent();
           // ga nu de comboboxvullen met gegevens uit de database
           ComboBoxEmployees.ItemsSource = db.employees;
           ComboBoxEmployees.DisplayMemberPath = "email";
       }

       private void button1_Click(object sender, RoutedEventArgs e)
       {
           employee selectedemployee = (employee)ComboBoxEmployees.SelectedItem;
           label1.Content = selectedemployee.voornaam + " " + selectedemployee.achternaam;
           label2.Content = selectedemployee.telefoonnummer;
       }
   }
}


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Sanchez SalesJun 18, 2020 08:11 AM 0 165 Jun 18, 2020 08:11 AM
Last Post: Sanchez Sales
[Java] by Juice.Mar 10, 2020 07:02 PM 0 136 Mar 10, 2020 07:02 PM
Last Post: Juice.
[.NET] by UijaJul 22, 2018 06:01 AM 2 143 Jul 22, 2018 06:01 AM
Last Post: Uija