I have a database acess (db) with column ID, Age, Sex, Name
And a windows form1 (vb.net) with textbox as ID and a button "search". A second form2 having textboxes as ID, Age,Sex. Name
When i enter ID no. with search buuton it should retrieve data from db to various textboxes in form2. i dont't know the code.
Jump to Post
Imports System.Data.OleDb Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Change Tablename,Access Full path,Password Dim CN As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" & "Data Source='" & "Access Full Path" & "';" & "Persist Security Info=False;" & "Jet OLEDB:Database Password=" & "your pass" & ";") Dim …
All 8 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.