Solved

what is the best way to communicate with msft office access using linq in vb.net?

Posted on 2011-02-18
1
381 Views
Last Modified: 2013-11-27
I want send arrays and/or datasets to Access, then retrieve data back and forth and manipulate and work with it using linq in VB.net.

Is linqtosql my only option? what kind of connection do i have to setup? when communicating with excel, not using linq, i use... (i dont believe i can do the same with access)
imports microsoft.office.interop
public class ....
public wb as excel.workbook
0
Comment
Question by:crewcross
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 34930854
Hi crew cross;

Linq queries to MS Access is not supported. The reason for this is that no one has created a driver to convert the queries to native SQL for Accree. To your question, "Is linqtosql my only option?", Linq to SQL will not work because the SQL commands are not the same. If you wish to use Linq with data from MS Access you will need to connect to Access with standard access connection and load a data table with the data then you can use Linq to Dataset to query the data.

Fernando
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question