VB.NET MS Access Database Tutorial 2 # Add New ,Remove ,Save Data in Database using VB.NET

  Рет қаралды 283,212

ProgrammingKnowledge

ProgrammingKnowledge

Күн бұрын

Пікірлер: 153
@htk0002
@htk0002 5 жыл бұрын
for those who are not seeing the updated data when closing and reopening ur program. when u create the database connection dont click yes to copy the database to your project folder
@najihahzahidah802
@najihahzahidah802 3 жыл бұрын
can i know why?
@htk0002
@htk0002 3 жыл бұрын
@@najihahzahidah802 well its been a long time. I can’t exactly remember why. But I think it’s because every time you close and reopen vstudio copies the original unchanged database to your project file and uses that i guess instead of using the one that you already changed. Basically it resets the database for every run. Correct me if I’m wrong
@marydhelcompanero160
@marydhelcompanero160 3 жыл бұрын
@@htk0002 hi do you know how to fix autonumber when adding new data it keeps starting with -1 even if I have 5 records in tha database. It should be 6 but it starts with -1. Please help
@htk0002
@htk0002 3 жыл бұрын
@@marydhelcompanero160 This shouldn’t be happening. Auto numbers are designed to update by them self and it wont get stuck on -1 unless you specifically put -1 when you are inserting. Try checking your insert command and make sure you’re not inserting any value into the autonumber field. The database will update this field by itself.
@marydhelcompanero160
@marydhelcompanero160 3 жыл бұрын
@@htk0002 still the same. If i add new data it starts on -1 pls help. This is my code RecordsBindingNavigator. AddNewItem. PerformClick() I got it on other tutorials
@mangulabnanreyjosephe.4880
@mangulabnanreyjosephe.4880 3 жыл бұрын
my teacher told me and my classmates to create a library system but he never teaches thank you for existing vb jesus 👏🙏🙏
@gurosiya
@gurosiya 2 жыл бұрын
Hello! You may want to see this: kzbin.info/www/bejne/a5XNdYyfebahh9U
@lancediverge4065
@lancediverge4065 3 жыл бұрын
I really had a good time learning this even helped me on my system thankyou so much
@jonathanjrpaniza3815
@jonathanjrpaniza3815 8 жыл бұрын
Thank you so much for helping my thesis
@madhupen5719
@madhupen5719 4 жыл бұрын
God bless you for sharing your knowledge.
@trevordaniels4443
@trevordaniels4443 6 жыл бұрын
I can get the Add, Save, and Delete button to work, BUT, if I try to save after a deletion I get an error. Why?
@le5648
@le5648 7 жыл бұрын
Thank for share, Thank for all comment !
@jedrickhernandez3518
@jedrickhernandez3518 6 жыл бұрын
you are a great help! i love you!
@yousefeno
@yousefeno 3 жыл бұрын
Thank you so much
@lawrencereyes2796
@lawrencereyes2796 6 жыл бұрын
THANK YOU VERY MUCH SIR!
@walaamahmoud6741
@walaamahmoud6741 8 жыл бұрын
thank youu alottt this is such a helpful vedio it helped my BIGTIME
@malumbomkandawire7556
@malumbomkandawire7556 5 жыл бұрын
Awesome Video Keep it up
@Guma1713
@Guma1713 2 жыл бұрын
Can you save data on a deleted row? If u can, how?
@syahierahnadzri3789
@syahierahnadzri3789 7 жыл бұрын
hey! thank you so much ur video helps me alot :)
@NGP-sv2jf
@NGP-sv2jf 9 жыл бұрын
THANK YOU VERY MUCH SIR I OWE YOU BIGTIME
@sunnygumamela
@sunnygumamela 6 жыл бұрын
Thank you so much! but mine has existing data on my database how do i make it visible? i checked the visibility and it was on true, what should I do?
@trailerhubmoviesandgames91
@trailerhubmoviesandgames91 10 жыл бұрын
awesome Tutorial!
@devipriyav6921
@devipriyav6921 3 жыл бұрын
Please give suggestions for my question How to insert table2 data's from table1 in VB.net with Ms access
@clintonweisei100
@clintonweisei100 5 жыл бұрын
thanx sir..and how can you search ??
@chiragpatel5918
@chiragpatel5918 9 жыл бұрын
Well done.!!!
@ervindelapena7097
@ervindelapena7097 3 жыл бұрын
how about edit and update button? please answer, it will help me a lot, thanks!
@ajsantos3739
@ajsantos3739 5 жыл бұрын
Do you have a tutorial for the same thing but using mySQL? That would be very helpful to me
@JSpade
@JSpade 9 жыл бұрын
why after i close my vb debugging window, the data i just save is gone. it wont save into my access even i open it in right place and save it in access.... please help TQ
@rajkumarbiswas3289
@rajkumarbiswas3289 4 жыл бұрын
same think with me , have you solve it
@qguo3923
@qguo3923 6 жыл бұрын
good for fresh men
@lasanthakarunanayake190
@lasanthakarunanayake190 Жыл бұрын
How to edit existing data in data grid view showing one and save same ID number , not now number?
@sarvottamlasane2186
@sarvottamlasane2186 4 жыл бұрын
Sir we have Save detail in Data base then save but if any delete row then click save button then show data not save please give solution
@selormatsu2057
@selormatsu2057 6 жыл бұрын
it was great finding this vedio it helped me alot but i will lie to great a login and connect to access database and connect that login to this form how do i go about it
@ervindelapena7097
@ervindelapena7097 3 жыл бұрын
how is this? when you add data in vb its also adding data on acces
@jesteradamaliganga6826
@jesteradamaliganga6826 5 жыл бұрын
Can you add a button which can update your data? for example the id number 2, John Eather, changed its name to another one, like Jester Adam.
@gurosiya
@gurosiya 2 жыл бұрын
Hello! You may want to see this: kzbin.info/www/bejne/a5XNdYyfebahh9U
@RamaArdianto
@RamaArdianto 9 жыл бұрын
Could you show tutorial VB. Net, access Database to add button search??
@ProgrammingKnowledge
@ProgrammingKnowledge 10 жыл бұрын
@sellemisaber1234
@sellemisaber1234 8 жыл бұрын
merci bien pour le demo. J'ai appliquer tous mais J'ai un pb de sauvgarde sur la base de donnee comment faire?
@sairayoung2364
@sairayoung2364 8 жыл бұрын
It only add data into the data grid and does not update data in the access.
@MenacingMoto321
@MenacingMoto321 8 жыл бұрын
+Saira Young Just kidding. It can. Change copy to output directory to "Copy if Newer" in the DB Properties in the solution explorer.
@sairayoung2364
@sairayoung2364 8 жыл бұрын
+Menacing Moto I tried but it's not working. I have set my dataset and the table adapter's "COPY TO OUTPUT" to Copy if newer yet not working.
@MenacingMoto321
@MenacingMoto321 8 жыл бұрын
Saira Young Hmm.. Check the path and make sure it's correct.
@sairayoung2364
@sairayoung2364 8 жыл бұрын
+Menacing Moto I followed user named themagni13's comment from below and it works! But now I'm into updating data so, would like to ask if you know any easy code for update? Thanks in advance!
@ytjowl
@ytjowl 7 жыл бұрын
Hello! Help me to update the database when updating to data grid. how did you work with it?
@abaaadyaltalal335
@abaaadyaltalal335 7 жыл бұрын
thank you so match
@misspumpkinpie125
@misspumpkinpie125 7 жыл бұрын
i got a problem with these. actually. when first i ran the test. it was successfully added into database, then after i exit from the system, and open it back, the data that i key in earlier were disappeared. a sometime error.. why?
@chathurakumara3946
@chathurakumara3946 10 жыл бұрын
thankx it use full
@MSalahCivil
@MSalahCivil 10 жыл бұрын
hello I did like what you do in this video but the database just save the new data when the program is running but i close the program the database get back to the initial state and all what i did disappear Please tell me what's wrong.
@smopuim
@smopuim 10 жыл бұрын
Hey!. I know its late, but that happened to me, it was because when testing the APP it uses a copy of the DB in the DEBUG folder, so you are editing that one, and everytime you press RUN it takes the virgin copy and copies it over the saved one in BIN folder, this can be fixed with the option copy if newer.
@MSalahCivil
@MSalahCivil 10 жыл бұрын
thanks
@karamkorotani5263
@karamkorotani5263 9 жыл бұрын
i have a problem, when i do add new data and save it, it shows me the mssg that data is saved completely but it didnot update my database any solutions????
@mrkrlmykl
@mrkrlmykl 9 жыл бұрын
SmopuiM Sir where can I find the "option copy if newer"
@adamclarke6092
@adamclarke6092 9 жыл бұрын
mr krlmykl Just reading through the comments and I may have an easier solution. The way this will work is when you hit the save button the database will update but it will not update your original database that you created. It will make a copy that is stored in your Bin File, you can find this in you VB project folder for example... \Visual Studio 2012\Projects\WindowsApplication1\WindowsApplication1\bin\Debug This will have the data that you have entered into the application previously. My Suggestion would be to add a new data connection to the database that has been saved in this folder rather than the one you originally made. By doing that every time you open the application again it will open the file in the Bin folder with your saved data! The second way you can do this is by providing the full patch location of your original database that was created. by using the data directory function. I would just go with the first one as its easier, hope this helps if you haven't already fixed it! Happy coding!
@yuzasifkhan147
@yuzasifkhan147 7 жыл бұрын
Hi I would like to know as how to store 2D array into table and also retrieve a table using array I'm using oledb connection
@MrDueno
@MrDueno 6 жыл бұрын
Hi, I'm doing everything you said in your video, but when I added new data and stop the program and run it again, the data was not saved, is doing this every time I close the program and run it again. What can be the problem?
@mediz6447
@mediz6447 4 жыл бұрын
Have u found a solution ?
@sunilshinde6201
@sunilshinde6201 8 жыл бұрын
thank you
@omsushantkarki
@omsushantkarki 8 жыл бұрын
add new button will just add the data and deletes the previous record that i added. it will replace it , once i reopen the application and try to add a new record. how to addend record instead to replacing the record.
@felimonancheta585
@felimonancheta585 10 жыл бұрын
sir do you have a tutorial that saving the path a picture, using access, example C:image.jpg the image will not actually be save but path of the image will going to be save
@tonyg_fgc8152
@tonyg_fgc8152 10 жыл бұрын
he will never answer he is dead...
@marcangelobautista3643
@marcangelobautista3643 7 жыл бұрын
where did you get the employeeinfo.acc.db?
@ventismami1745
@ventismami1745 6 ай бұрын
how to fix this "The Microsoft.Ace.OLEDB.12.0 provider is not registered on the local machine"
@Vokofe
@Vokofe 8 жыл бұрын
Hi, The delete button does not appear to work properly. After I click DELETE on any existing records, then click SAVE, the Access is updated. However if I just added a new record, Save it, delete the new record, Save, It gives the error of Saving Data You will be able to see the New Record when you SAVE after ADDNEW, but if you DELETE the new record and SAVE, the new record is NOT deleted in Access. Setting {Change copy to output directory to "Copy if Newer" in the DB Properties in the solution explorer.} does not help Pls advise Edit: After much google, I figured out the reason why you cannot delete the record immediately after just adding it. In my case, it is due to the Auto-generated primary key. In the GridView, notice when you AddNew, the EID is -1. When you Save, that record is updated in Access with the next auto-running EID. Hence, when trying to delete, the program tries to find the EID of -1, but failed cuz in the Access it is no longer -1, but some new running number. I resolve this by adding 2 lines of code to "refresh" the GridView everytime you Save. This will allow it to regrab the data from Access, together with the EID. Private Sub save_btn_Click(sender As Object, e As EventArgs) Handles save_btn.Click Try ProjectsBindingSource.EndEdit() ProjectsTableAdapter.Update(EVC_ProjectsDataSet.Projects) 'Name of DB Table 'Refresh the ID in the GridView EVC_ProjectsDataSet.Clear() ProjectsTableAdapter.Fill(EVC_ProjectsDataSet.Projects) MessageBox.Show("Data Saved!") Catch ex As Exception MessageBox.Show("Error saving data!") End Try End Sub
@jeromepalentinos8121
@jeromepalentinos8121 7 жыл бұрын
i recommend this codes.. i used this for my thesis
@marydhelcompanero160
@marydhelcompanero160 3 жыл бұрын
@@jeromepalentinos8121 how po pag autonumber ung sa id pero pag mag add new data -1 ung automatic nya kahit may old record na 5 dapat 6 na next po?
@LxUniverse-AeriHann
@LxUniverse-AeriHann 5 жыл бұрын
Hello sir, can you make a tutorial how to save data into databse in vb.net 2008 but it's not in form, it's like a web form. I'm having hard time to look for tutorials making a website using vb 2008, please i hope you can help
@zxc.Laurence
@zxc.Laurence 6 жыл бұрын
hi sir can you provide a video tutorial for transferring data in datagridview to another datagridview
@Zeph504
@Zeph504 2 жыл бұрын
It only showed there, but it does notsave on the access folder. how to make it save in access folder
@sesughakpera
@sesughakpera 7 жыл бұрын
the data only updates on the data grid in visual studio but does not update in my access data base please respond soon because im really stuck
@mediz6447
@mediz6447 4 жыл бұрын
Have u found a solution ?
@yuanni6727
@yuanni6727 9 жыл бұрын
when you click on "Add new", how could the textboxes are cleared? Can you teach me please
@yuanni6727
@yuanni6727 9 жыл бұрын
my information will not update into the new row also >
@MenacingMoto321
@MenacingMoto321 8 жыл бұрын
+Yuan Ni Double click Add New And code in the name of the txtbox(es) you want cleared. For example, You have a textbox named txtTotal, When you double click Add New to add new code, type this in: txtTotal.Text = "" This also works: txtTotal.Clear()
@jayrodneybesario2225
@jayrodneybesario2225 8 жыл бұрын
how you do that ? that your DateTimePicker1 are saved to database ? sorry for my englsihh
@CoreTech951
@CoreTech951 8 жыл бұрын
Thanks!!! :)
@bhavaninizampuram5411
@bhavaninizampuram5411 5 жыл бұрын
Hi Sir can you please help me to import Excel file into MS Access db on click of button dynamically
@grayman2612
@grayman2612 8 жыл бұрын
Hi, after closing the program and opening again those data are not saved on access database. Kindly advise and thanks
@grayman2612
@grayman2612 8 жыл бұрын
+TheMagni13 Thanks alot and it's working now. :)
@grayman2612
@grayman2612 8 жыл бұрын
+TheMagni13 do you have any idea for deletion of data, once i deleted data and close the program then open again the program but those data i deleted still there. Kindly advise and many thanks
@anomolisagag2270
@anomolisagag2270 4 жыл бұрын
5:13 why i don't have Update() method?
@user-eq5up9em3f
@user-eq5up9em3f 7 жыл бұрын
thank u
@loainsoor7924
@loainsoor7924 7 жыл бұрын
why the minus sign when add new record ? how can I get number without minus sign?
@mictralif7515
@mictralif7515 6 жыл бұрын
can you help me create scheduling software for pt visits?
@danishmirza5857
@danishmirza5857 5 жыл бұрын
my data got save but error in code of delete and add newdata plz help me about this
@videogenerator7418
@videogenerator7418 5 жыл бұрын
Allow Null value to false This error is coming. what should i do?
@innocentmwiinde475
@innocentmwiinde475 5 жыл бұрын
How do you reduce the number of records from the database for example like when issuing out a book
@gurosiya
@gurosiya 2 жыл бұрын
Hello! You may want to see this: kzbin.info/www/bejne/a5XNdYyfebahh9U
@nivinsanthosh4937
@nivinsanthosh4937 9 ай бұрын
I cannot get the add, delete, previous,next save icons .. pls someone give solution for this
@bhooshankarnawat4419
@bhooshankarnawat4419 9 жыл бұрын
the save button which appeared automatically in vb design form is not enabled................ n if we create the save button automatically then error occurs as"upadate is not a member of given database.dataset"....
@Case1303
@Case1303 7 жыл бұрын
BHOOSHAN KARNAWAT how to fix This?
@hieicent5430
@hieicent5430 9 жыл бұрын
why if i save the data it will saved , but if i close the system the saved data is close too
@steffin001
@steffin001 8 жыл бұрын
Where'd you get that EmployeeInfoDataSet?
@MenacingMoto321
@MenacingMoto321 8 жыл бұрын
+Stephen Inoc He made it in access.
@kofinti9181
@kofinti9181 8 жыл бұрын
if you load the app again it does not show what you saved. pls explain?
@arnelespanolajr7097
@arnelespanolajr7097 8 жыл бұрын
Just change your Database output in "Copy if newer"
@creativedeep6199
@creativedeep6199 5 жыл бұрын
@@arnelespanolajr7097 i try but its not working. only show old data not show new data
@chrisworldwideTV
@chrisworldwideTV 6 жыл бұрын
adt.fill(ds) did not work .. please help me about this to how to solution of this code
@clutchwithjoms5042
@clutchwithjoms5042 10 жыл бұрын
why the data in access cant be deleted permanently?
@lheiyanbalibago7029
@lheiyanbalibago7029 9 жыл бұрын
yeah me too please answer it why the data access cant be deleted permanently
@abelsedigo4862
@abelsedigo4862 9 жыл бұрын
Lheiyan Balibago try to build your project
@sadimohamed6397
@sadimohamed6397 9 жыл бұрын
i did the same code and, i cant update the data from the Access file
@BayabasChannel
@BayabasChannel 8 жыл бұрын
Please help me! when i debug run and saved data!, When i stoped it and run again the saved data are gone! I think there's no problem in the code, Please help! reply fast please!
@BayabasChannel
@BayabasChannel 8 жыл бұрын
I get the Solution! Just go to your dabase . xsd in solution explorer and go to ADVANCE>Output Directtory> and set to "Copy if newer. Thanks Again!
@orocimaru757
@orocimaru757 7 жыл бұрын
i set to coy if newer but when i stoped it and run the save data is gone. help me SOLVED. In button exit Add BarangTableAdapter.Update(InventoryDataSet.barang) above me.close
@funnyvideostv1950
@funnyvideostv1950 7 жыл бұрын
sir if i save the data with same date it not show the date..
@SadamHussain-lw4cc
@SadamHussain-lw4cc 7 жыл бұрын
How to add table in access database on run time. Please help me
@omaribnoulouafi1643
@omaribnoulouafi1643 7 жыл бұрын
thank you,i want to have just the in formation that it is in one date pleaz unser me as soon as possible
@shmrmhmd995
@shmrmhmd995 6 жыл бұрын
Need improved communication
@VillagerLifeCraft
@VillagerLifeCraft 7 жыл бұрын
Not working, only the data grid update but access nothing happens.
@nikiblooms
@nikiblooms 8 жыл бұрын
I did the same things but the data don't go directly in database and not showing up in datagrid. HELP! Thanks! :( :)
@aldee9492
@aldee9492 8 жыл бұрын
+Nicky Mae Agravante me 2
@MenacingMoto321
@MenacingMoto321 8 жыл бұрын
+Nicky Mae Agravante Did you go to the dataset tab and click on the drop down arrow and select details before you dragged it to the form? Also in datagridview you click on the little button in the top right of the datagrid and select your data source. It will be called xxxxxxxxBindingSource
@christophervargas8551
@christophervargas8551 8 жыл бұрын
After I add add new, edit, delete button ms access database is not updating
@MenacingMoto321
@MenacingMoto321 8 жыл бұрын
+Christopher Vargas Just kidding. It can. Change copy to output directory to "Copy if Newer" in the DB Properties in the solution explorer.
@samruddhidhoke9186
@samruddhidhoke9186 5 жыл бұрын
how to add the coding throw data in database
@fortzero1545
@fortzero1545 6 жыл бұрын
I have tried everything I can find in this comment section to help with the data not saving in Access. I cannot for the life of me figure this out and I have already spent do many hours on this lol please help me!
@mediz6447
@mediz6447 4 жыл бұрын
Have u found a solution ?
@blendedbinah1274
@blendedbinah1274 8 жыл бұрын
i am using visual studio 2013 I exactly copy your code and does not work on save button
@Case1303
@Case1303 7 жыл бұрын
Blended Binah same here. Using visual studio 2010 express, have you found a solution?
@blendedbinah1274
@blendedbinah1274 7 жыл бұрын
i have found a solution that you need to set the machine setting on the properties project to x64.
@abaaadyaltalal335
@abaaadyaltalal335 7 жыл бұрын
can you helpe me becouse i want code for search and edit
@MultiCedrick09
@MultiCedrick09 8 жыл бұрын
TableAdapter.Update() did not work, help me plss
@mangsesatu
@mangsesatu 7 жыл бұрын
drag table.adapter into your form
@hazeemhashaini7798
@hazeemhashaini7798 5 жыл бұрын
@@mangsesatu how
@marionvillanueva960
@marionvillanueva960 8 жыл бұрын
i have done this as part of my project. but when i publish it, there was an error. Database could not find. How can i publish it with the accdb? note: program will work unless i paste my accdb manually at the appdata folder.
@stennettmullings
@stennettmullings 8 жыл бұрын
I create a login button but it won't fetch information...
@taurussilver148
@taurussilver148 8 жыл бұрын
same here....please help...
@expresswithfood4501
@expresswithfood4501 8 жыл бұрын
you pronounced data wrongly
@MisterItchy
@MisterItchy 5 жыл бұрын
You used the word 'wrongly' incorrectly.
@suryaskp3598
@suryaskp3598 6 жыл бұрын
i lost the data after close the application..when i restart the Application data is lost
@davecadilo3000
@davecadilo3000 6 жыл бұрын
Same problem hahaha if you found a video that show the data is store on access database Message me back Thank you.
@suryaskp3598
@suryaskp3598 6 жыл бұрын
Dave Cadilo i found a solution. Starting of the data connection while connection process the popup message shows something like "copy the database" click No to save it directly
@EskyDinpuiaChhangte
@EskyDinpuiaChhangte 7 жыл бұрын
How to delete Data permanently
@sandipratama3546
@sandipratama3546 6 жыл бұрын
how to create edit button
@marymaria1692
@marymaria1692 2 жыл бұрын
working on visual basic but nothing is being saved in the actual database lmao
@jahangirigeneralstores6106
@jahangirigeneralstores6106 5 жыл бұрын
HOW TO DATABASE UPDATE
@saadsalman4518
@saadsalman4518 7 жыл бұрын
it is not saving
@shmrmhmd995
@shmrmhmd995 6 жыл бұрын
Slow teaching
@johnabram4159
@johnabram4159 5 жыл бұрын
I cringe every time you say "daataa". Why not good old "deta"?
@abdo1986ify
@abdo1986ify 6 жыл бұрын
Thank you
@rajkumarbiswas3289
@rajkumarbiswas3289 4 жыл бұрын
hi sir, my data is showing in griedview but it is not save in db, kindly assist.
VB.NET MS Access Database Tutorial 1 # How to Connect Access Database to VB.Net
18:45
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 38 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 13 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Visual basic.net: retrieve data from access database- in VB.net
11:15
Programming for Everybody
Рет қаралды 25 М.
VB.Net Tutorial : How to INSERT Image INTO Access Database
16:51
Visual Basic.NET: insert, update and  delete  data in datagridview without using database
19:58
Visual Basic .Net : Search in Database - DataGridView BindingSource Filter
23:18
Programming for Everybody
Рет қаралды 22 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 38 МЛН