Search
Language: Visual Basic .NET
42949 reads

The primary purpose of this code is to teach beginner programmer to familiarize the concept of database programming.
This is particularly for beginner but may also applicable for intermediate programmer.
Download Code
Your Vote!
Note
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note:All files are scanned once-a-day by SourceCodester.com for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
- 42949 reads



wanna ask bout coding vb6
i don know the code insert n delete in database M.Eccess 2007 using button combo box..and arrage the list of combobox follow by alphabet...can 2 help me
Ms Access Database
Hi,
I am a beginner (vb.net programmer). I have ms access database with 2 tables. I connect to the database successfully but I want the primary key (Auto number) in table two to automatically appear in Foreign Key (Number) in table one after setting up the relationship.
Please I need your help.
honsjoe@yahoo.com
Thanks in advance.
Can you help me?
hi,
I am a start with vb.net. i have one table in Ms Access 2003 location is drive c:
but I am unknown about insert data from vb.net to Ms Access 2003.
Please, Can you tell me about this code?
chanthy_ven@yahoo.com
Thank you!
help on database connection
please can you help me with vb.net code to add text and picture from vb. to access...please can mail me at kufuptown@yahoo.com
ms access
when ever i update my record it updtae only one record. if i add no-1 and then no-2. so in my view report only 2 will show 1 will delete , why its is happening
update exceptions
Hi,
I am using msaccess 2003 as backend in project.
The code is just saving data which newly added but I want to update existing record of database using bindingnavigator. The code is throwing exception.
Please help me as soon as possible since the date of my project submission is coming nearer.
Thanks
snehalkul007@gmail.com
where r d codes
cant see no codes here although i clicked to download them
ahan gud job
i hpe yor code will help me in mine...:)
I need more codess....
I need more codess....
isit save password to access is different with normal field?
i face a problem saving password to Access.
it work nicely if i remove password.
the error occur on INSERT and UPDATE query.
please help.
using OleDb..
i can c the password value from the sqlcommand, but it just pop up the error message.
any idea on how to develop meeting room booking system using c#?
Please Help me....
how to write source code to save input data in .dat file...vb200
im beginner in VB...
after enter the input data, i tried to save in .dat file...but not sure how to write it on using vb2008...
and how to call back that file?
thank you
cleo_2425@yahoo.com
SQL Server 2005 DataBase Exampel
sir please can you send me the SQL Server Example of the Same.
BackEnd :SQL DataBase
FrontEnd :VB.NET
My mail ID is : praveenm_rama@yahoo.co.in
hello...
..plz post the step by step on how to add/update/and delete the record using ms access..tnx...i will wait for the response...Godbless....!!!
Hi, I'm beginner of
Hi,
I'm beginner of VB.NET. Pls help me about the database connection using vb.net with sql server,ms access and oracle with step by step process with screen shot. pls pls pls...........
My mail ID is:kananathakowsik@rediffmail.com
reterive image from ms accessDatabase in C#
Could you please help me i used all types of memory stream code
i have an error parameter in not valid;
here is my code
re: reterive image from ms accessDatabase in C#
Please wait for my tutorial.
library mgmt system using vb.net front end & ms access back end
Please
provide brother
my email id is vickymade4u007@gmail.com
vb coding
how we can use " insert command " in vb ?
pls send me some examples which describe the code
library management software in vb.net
hi please send me this software with frontend vb.net and backend access
hi
thank you>>>>>>>>>>>>>>>
Could you please provid the
Hi ... Thanks for the example,but Could you please provid the same example using SQL?
re: Could you please provid the
Yes sure. It needs some little work to convert this to SQL Server.
Thanks bro.. Hop that you
Thanks bro.. Hop that you could provid us the same example with SQL server .. it will be good upportunety for us t learn from you... Thanks again...
problems in moving records
i want 2 move data without using binding navigator in vb.net but i want to use buttons like first, previous, last & next. please help me!!!
re: problems in moving records
Added to my todo list.
how to create database on ms access by using vb.net code
Plz help in creating database by code
my email id prvnkmr449@gmail.com
Praveen
how to add image in ms access 2003
hy i wanted to add images in the ms access 2003, but i forgot how the step is.could u please tell me how?
re: how to add image in ms access 2003
If you mean saving an image in an access table then it is automatic. You can use ole object as the data type.
ListView Groups...
Nice Sample...
I got a challenge for you...
ListView Groups...
Group the list according to the Header Collumns that is being clicked.
help pls.. urgent..
i dont know how to insert record in access database. i have a formCustomer to that has txtLastName, txtFirstName and txtContact.. when i click the add button it should add the record in the database then i should view the list in the main form.. your code is quite hard to understand because im only a beginner. and is it ok to insert the record from 1 form to another or there are codes needed so that i can access it to the other form.?
here is my code.
Private Sub btnAccept_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAccept.Click
Dim con As New OleDb.OleDbConnection
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=..\data\YayaDB.mdb"
con.Open()
Dim query = "INSERT INTO Customer(Last Name,First Name, Contact No) VALUES(@LastName, @FirstName, @Contact)"
Dim cmd = New OleDbCommand(query, con)
cmd.Connection = con
cmd.Parameters.AddWithValue("@LastName", txtLastName.Text)
cmd.Parameters.AddWithValue("@FirstName", txtFirstName.Text)
cmd.Parameters.AddWithValue("@Contact", txtContactNo.Text)
cmd.ExecuteNonQuery()
con.Close()
Me.Close()
End Sub
pictures
Am new in .net and programming as well, i would like you help me save into and retrieve picture from the datebase.thank you.
re: help pls.. urgent..
If you follow the on Database Programming Made Easy you will learn how easy it is to insert data into an MS Access database.
hello
hi,, i copied your code about how to add update delete,,, the one thats above,,,, after ive done everything already (including the module, forms, designs, everything) it shows an error "Error while trying to run your project. could not load file or assembly 'add,deletewithaccess' or one of its dependencies. the given assembly name or code was invalid. (exception from HRESULT:0x80131047)" by the way 'add,deletewithaccess' is the filename of the project i saved in... please help....
re: hello
This is a strange error. May I know what version of VB.NET you are using?
for save in ms .access data base
hi
i am already design the code using vb.net 2005 for insert data in the table ,
but when i am again run that program then all the previous value of the table will delete and again newly entry value are store in table
my code:
Imports System.Data.OleDb
Public Class Form1
Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\raghu1stdb.mdb")
'Dim da As OleDbDataAdapter
Dim da As New OleDbDataAdapter("select * from table1", con)
'Dim x As String = "select *from table1"
' da = New OleDbDataAdapter(x, con)
Dim ds As New DataSet, dt As New DataTable, dr As DataRow
Dim i As Integer
Dim bm As BindingManagerBase : Dim cb As OleDbCommandBuilder
Dim cm As OleDbCommand
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim x As String = "select *from table1 "
da = New OleDbDataAdapter
da.SelectCommand = New OleDbCommand(x, con)
da = New OleDbDataAdapter(x, con)
ds = New DataSet
da.Fill(ds, "name1")
dt = ds.Tables("name1")
dr = dt.NewRow
bm = Me.BindingContext(dt)
cb = New OleDbCommandBuilder(da)
''MessageBox.Show()
End Sub
Private Sub Bsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Bsave.Click
dr = dt.NewRow
dr.Item("ID") = Txtid.Text
dr.Item("Name") = txtname.Text
dr.Item("Address") = txtadd.Text
da.Fill(ds, "name1")
dt = ds.Tables("name1")
dt.Rows.Add(dr)
dt.AcceptChanges()
da.Update(dt)
MessageBox.Show("datais update")
End Sub
End Class
so what i will do
plz send the code for save in db using vb.net
as soon as posible plz send me i need that
plz send in my mail id: raghuramsahu@gmail.com
Kindly download one of the
Kindly download one of the code in Database Programming Made Easy.
I have already done this.
ASP.NET
sir..gud am...can u teach me the hard coding connection of my project to ms access as my back end with out using any control...purely coding???...adding record in table updating retrieving and deleting...thx in advance...
hi bro..
i have two tables using acces database and i need to insert the same records in that two particular tables.The problem is that, "I can only save the records into one table and the other table is empty.".I hope you can help me with this particular problem, i'll apreciated it so much..thank you..
if its ok, heres my eadd: vash_jbv@yahoo.com
re: hi bro..
gives use some snapshot of you work.
Manipulation of datasource of report viewer
Gud day sir!
i want to seek help on how to change the datasource of a report in the choice of the user dynamically..
in short.. one report viewer, multiple rdlc files can be shown simultaneously.. hust a sample code..
hope for your kind help! more power and godbless!
tnx..
aguirre
Upadte Database in webserver
Hi friend i already download your Code.
But i want to clear that can i able to access Msdatabase File from web server.
if possible please explain me
my id is lightininggroups@gmail.com
re: Upadte Database in webserver
Are you planning to create a website using ms access database? Yes this is possible to access ms database from your web server.
hi, How to insert a data
hi,
How to insert a data into two table by using acces database with vb.net
Thanx,
Regards,
Sandeep
Kindly study Database
Kindly study Database Programming Made Easy.
I already discuss everything in there.
retrive image!!!
Hi,
Follwing is the coding of save and retrive the image from ms access database in vb.net2008.but its through input box.I just want that user click on a account no.from combobox and image is displayed.
Plz anybody help me.its urgent.
Thanx,
Regards,
Sandeep
Use the following code.
Use the following code.
But I'm still wondering why you ask this. Because it is very easy. With your code above it seems that you know this already.
Hello Joomar
Hello, Could you tell me how to be strong in vb.net.I started in vb.net from beginner,but I don't where should i begin.
Anyway Could you tell me which book should i take a look for the first time? or any website ?
Thank
re: Hello Joomar
If you want to become a professional vb.net programmer I suggest you take a look at the Books section above.
You may also wish to study "Database Programming Made Easy".
Hello Jomar
Anyway,would you like tell me where should i pick up that book"Database Programming Make Easy"? I really interesting with your programming code.On the other hand How long did you study with it? where could i finding that course?
Thank you for helping me!
Post new comment