Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 370223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:59:50+00:00 2026-05-12T13:59:50+00:00

In MS Access I have a query wich takes two parameters and I’d like

  • 0

In MS Access I have a query wich takes two parameters and I’d like to get the result of this query in a ADO.NET DataSet with a TableAdapter.

In Visual Studio Express 2008 I can’t select the query in the assistant. In fact it seems I can’t select any queries with parameters. Is there any way to use am Access parameterized query in ADO.NET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:59:50+00:00Added an answer on May 12, 2026 at 1:59 pm

    query1

    SELECT * FROM EMP where eno=meno and ename=mename
    

    Popuplate DataTable instance

    OleDbConnection cn = new OleDbConnection(@"connect_string");
    OleDbCommand cmd = new OleDbCommand("query1", cn);
    cmd.CommandType = CommandType.StoredProcedure;
    
    cmd.Parameters.Add("meno", OleDbType.Integer, 4, "eno");
    cmd.Parameters.Add("mename", OleDbType.VarChar, 40, "ename");
    cmd.Parameters[0].Value = 44;
    cmd.Parameters[1].Value = "ddd";
    
    OleDbDataAdapter adp = new OleDbDataAdapter(cmd);
    DataTable dt = new DataTable();
    adp.Fill(dt);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.Net page using ADO to query MS access database and as
I have a SQL query (MS Access) and I need to add two columns,
If I use routing with 2 query parameters, like this: System.Web.Routing.RouteTable.Routes.MapPageRoute(HomeRoute, home/{f1}/{f2}, ~/Home.aspx); My
I have an access query which creates some output, 3 columns named e.g. A
In MS Access, I have a query where I want to use a column
I have an access database, with a query made. I need to automate it
I have a Microsoft Access database query that I'm trying to import into a
EDIT: I also have access to ESXLT functions. I have two node sets of
Does Microsoft Access have Full Text Search? I know that MySQL and SQL Server
I have access to an Oracle server that has some databases that I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.