473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

1006 authors

8
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
'load

OleDbDataAdapter1.Fill(DataSet11)
Dim a, b, c As Integer
a = 1
Label4.Text = a
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = a + b
Label5.Text = c

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'next


Dim a, b, c As Integer
a = 1
Label4.Text = a
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = a + b
Label5.Text = c
Me.BindingContext(DataSet11, "authors").Position = Me.BindingContext(DataSet11, "authors").Position + 1

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'previous

Dim a, b, c As Integer
a = 1
Label4.Text = a
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = a + b
Label5.Text = c

Me.BindingContext(DataSet11, "authors").Position = Me.BindingContext(DataSet11, "authors").Position - 1
End Sub

Private Sub First_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles First.Click
'first


Dim a, b, c As Integer
a = 1
Label4.Text = a
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = a + b
Label5.Text = c

Me.BindingContext(DataSet11, "authors").Position = 0
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
'last

Dim a, b, c As Integer
a = 1
Label4.Text = a
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = a + b
Label5.Text = c

Me.BindingContext(DataSet11, "authors").Position = Me.BindingContext(DataSet11, "authors").Count - 1
End Sub

Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label4.Click

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'goto

If TextBox4.Text = 0 Or TextBox4.Text > Me.BindingContext(DataSet11, "authors").Count Then
MsgBox("RECORD NOT FOUND")
Exit Sub
Else
Dim a, b, c As Integer
Me.BindingContext(DataSet11, "authors").Position = TextBox4.Text
a = 1
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = TextBox4.Text
Label5.Text = c
Me.BindingContext(DataSet11, "authors").Position = TextBox4.Text
End If
End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
'update

Me.BindingContext(DataSet11, "authors").EndCurrentEdit()
Me.OleDbDataAdapter1.Update(DataSet11)
MsgBox("Record Successfully Updated")
End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
'insert

Me.BindingContext(DataSet11, "authors").AddNew()
MsgBox("Insert Record Now")

End Sub

Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
'delete

Dim a, b, c As Integer
a = 1
Label4.Text = a
b = Me.BindingContext(DataSet11, "authors").Position
c = Me.BindingContext(DataSet11, "authors").Count
Label4.Text = a + b
Label5.Text = c
Me.BindingContext(DataSet11, "authors").RemoveAt(Me.BindingContext(DataSet1 1, "authors").Position)
Me.OleDbDataAdapter1.Update(DataSet11)
MsgBox("Record Successfully Deleted")
End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
'combobox
ComboBox1.DataSource = DataSet11.Authors


End Sub
Jul 26 '06 #1
0 1270

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: lynn | last post by:
Hello everybody, I am having difficulties: I am working on Mac OSX 10.2.8 with mysql 4. I needed to change the data directory of MySQL from its original place (where the application have to be...
0
by: lynn | last post by:
Hello everybody, I am having difficulties: I am working on Mac OSX 10.2.8 with mysql 4. I needed to change the data directory of MySQL from its original place (where the application have to be...
1
by: GoodBacha | last post by:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click OleDbDataAdapter1.Fill(DataSet11) Dim a, b, c As Integer a = 1 ...
1
by: Henry16 | last post by:
Hi. Impossible to create a database using MySQL !!! Message : #1006 - Can't create database 'boby'. (errno: 13) I was told : chown mysql.mysql -R /var/lib/mysql chmod 750 -R /var/lib/mysql...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.