Jump to content
Xtreme .Net Talk

Recommended Posts

Guest avissoft
Posted

Hello!

 

I am complete noob to VB.Net !! I am trying to use MS Access Database and trying to make a simple SQL Query in VB.Net!!

 

Can anyone tell me on how to go about ?

 

Thanks!

Guest avissoft
Posted

Hi Anis!

 

Actually i wanted to know how to access database first..then run a sql query on it in VB.Net..!!

 

I think accessing a database is whole different than VB6...

 

Thanks!

Guest TheIrishCoder
Posted

I assume you mean you wish to use ADO.Net to connect to an Access database. You have to be specific as the old ado is still available by reference in .Net, it's just not the better option anymore.

Using ADO.Net you have to decide what kind of return data you want. For a read only return you would use the OleDataReader. For a completely updatable disconnected representation of a Sql return you use a Dataset or DataTable through an OleDataAdapter. Beyond this you would be well advised to look for tutorials on these objects or ADO.Net as to outline their use here would take several pages.

Guest avissoft
Posted

Hi TIC!

 

I just want to read data from the access database..and display the results in msflexgrid!!! For now i just want to do this!!

 

Later i want to add new records...modify records and delete records..!!

 

Thanks!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...