Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-18
1
Medium Priority
?
386 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 64

Accepted Solution

by:
Fernando Soto earned 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

604 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