Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Could someone instruct me to a perfect step in filled up data from mbd database into dataset..? I already search into google, msdn and other forum. The result still can't success. I don't know why. I perform a GetDataFromDB from separated class. And also want to view the dataset value into datagridview by filtered it with SQL Query..

Can someone help me?
Posted

Try next software to solve your problem out
access database error fix
application must help you
 
Share this answer
 
VB

VB
Dim dt1 As New DataTable()
    dt1.Clear()
    Dim adp As New OleDb.OleDbDataAdapter("SELECT * FROM DatTime", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Alram.mdb")
    adp.Fill(dt1)
    adp.Dispose()
    DataGridView1.DataSource = dt1


May this COde helps you......:)

In this code DateTime is my Table and Alram.mdb is the mdb file....put this code in button_click event.....
 
Share this answer
 
v2
Comments
Luiey Ichigo 3-Nov-11 2:56am    
TQ Nikul..I'll try this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900