INSERT, DELETE, UPDATE AND SELECT Data in MS-Access with VB 2008 Part 2

preview_player
Показать описание
Please refer to the link to get source code:
Рекомендации по теме
Комментарии
Автор

Setha,
I had already fixed the date of admission. It has worked accurately now

Thanks really for your tutor

ohisio
Автор

I don't know if it is just me.

Yes, the data source, well except for the DELETE and EDIT Button, well probably because it's not declared using selectedindex.
Well enough of that, what I want to ask is that, well yes it works but it doesn't actually save the data from the database, it only displays the save data from the actual grid inside the form, but not really on the data base files.

Is it just me?

LichKing
Автор

You Sir are a boss! May only good things come in your life.

Cheers.

casiocruiser
Автор

hi, hey, when you used in the first minute Me.dgvData.Rows.Count > 0. Where did you declare dgvData? I can't understand from where come.

daciocco
Автор

Thank you, your so specific in coding thats why I liked,
I add if isnumeric(txtstudetID.text) in add  so it wont crush if the id has / or - and the only problem is the unique keys if its duplicate well we can put yes to duplicate in database

stephencabreros
Автор

Setha, it has already worked after downloding the source codes. Thank you !.

ohisio
Автор

i did :) I boxed the column names like this: [column1], [column2] etc. It was to do with some of the columns having 'reserved' names, the boxing of the columns seemed to clear the error :D

iDrumxx
Автор

hi. please arrange this code because it add records at first but when you click edit then update and then add new record again, it keeps on overwriting the previous row. it doesn't add new row.

telleme
Автор

Thank you so much for getting back. Keep up the good work, Bless!

djitobigD
Автор

Hi
How do you solve "Syntax error in UPDATE Statement" when my update button is in a form which is in a relationship with another form in access database as I have 2 tables with the same titles as the said forms. E.g. ClientEntry <---> Bill
When the error shows up. The ExecuteNonQuery line is highlighted in yellow.
Anyone's help would be much appreciated.

adrianblade
Автор

I got a error that was unhandled: "The 'Microsoft.Jet.Oledb.4.0' provider is not registered on the local machine.

djitobigD
Автор

Hello! I am getting this problem "The INSERT INTO statement contains the following unknown field name: 'stdid'. Make sure you have typed the name correctly, and try the operation again."

Why is this happening? I copied almost everything in this video.... :/

kelba
Автор

i can not use Delete & Edit
Can you help me???
when i click them,
error.
Column named snv cannot be found. Parameter name: columnName
and this row "yellow"-->Dim intSnv As Integer =

plz

KBUlifecom
Автор

im getting this error
A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll
A first chance exception of type occurred in System.Data.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll

I.n-s
Автор

im stuck on 5:07 so far everything is perfect except the updating part. i followed it accordingly but just used my fields instead. i have the exact layout on point but i keep getting the error : Operand '&' is not defined for types 'String' and 'System.Windows.Forms.Text box'. Another error i got is :SelectedRows' is not a member of If someone out there knows how to fix this pls help

iRoNiiC_HR
Автор

Hey dude, i got everything fine but u didn't show working of edit and delete button at the end of the video can u please help me with that, i really could't get it and have error on counting of datagridview selected rows ..!!!

BEWAEK
Автор

Hi Setha,
it shows me an error when i compile under the private sub refreshData(), highlighting the da.Fill(dt) below is the error
IErrorInfo.GetDescription failed with E_FAIL(0x80004005).
Can you help please ?.


ohisio
Автор

i have error in da.Fill(dt) it says "No value given for one or more required parameters.".. how to fix it?

rayacebedo
Автор

hey how about the delete button ??
when i delete 1 record all record was deleted ?? -_-

arjayquintos
Автор

sir i want to save image on acces what will be the code for that, your code only work only for text and int .?

SuperStrahan