Hi ,
I had 2 forms, Form A and Form B
Form A are to insert employee details
Form B retrieve employee details from database (insert from Form A)
The problem i had was, the Form B not able to retrieve the edited/updated data which has been done from Form A, it only retrieve old data(b4 edit/update)
* unless i close and run again then it running well
The code for Form B are as below ::::
:very_drunk::very_drunk::very_drunk::very_drunk: please help... Thanks
I had 2 forms, Form A and Form B
Form A are to insert employee details
Form B retrieve employee details from database (insert from Form A)
The problem i had was, the Form B not able to retrieve the edited/updated data which has been done from Form A, it only retrieve old data(b4 edit/update)
* unless i close and run again then it running well
The code for Form B are as below ::::
:very_drunk::very_drunk::very_drunk::very_drunk: please help... Thanks
Private Sub employeepayroll_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim i As Integer Timer1.Enabled = True pdatetextbox.Enabled = False eictextbox.Enabled = False dbProvider = "PROVIDER=Microsoft.ACE.OLEDB.12.0;" dbSource = "Data Source = |DataDirectory|\empdb.accdb" con.ConnectionString = dbProvider & dbSource con.Open() sql = "Select ename from tblemp order by ename" da = New OleDb.OleDbDataAdapter(sql, con) da.Fill(ds, "tblemp") For i = 0 To ds.Tables("tblemp").Rows.Count - 1 enamecombo.Items.Add(ds.Tables("tblemp").Rows(i).Item("ename").ToString()) Next con.Close() End Sub
Last edited by a moderator: