MS-Access - Setting parameters for pass-through query

PaoloFCantoni

I have a pass-through query (for SQL Server) in Access which works with explicit values. For a non-pass-though query, I just use the visual editor to create parameters for the affected columns.

Is it possible to do the equivalent with a pass-through query or must I assemble the query with VBA (as mentioned in another post)?

TIA,

Paolo

this

Unfortunately, you cannot. It would be once possible with ODBCDirect workspace but that was removed since Access 2010. Therefore, for pass-through queries, you would have to concatenate SQL.

A possible alternative is to use ADO which allow you to create parameters and thus construct a command and execute it. Note that your project doesn't have to be limited to only DAO; you can use both DAO and ADO, leveraging what works best for your requirements.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Setting RowSource in Access with Pass through query

From Dev

Setting RowSource in Access with Pass through query

From Dev

Pass Through Query With Parameters

From Dev

In MS Access SQL Server Linked Table pass through query

From Dev

MS Access pass-through query to Oracle VIA ODBC

From Dev

Optional Query Parameters in MS Access

From Dev

MS-access Pass-Through Query to SQL Server 2008 Adding Prefix

From Dev

Expected payments through a contracts life using MS access query?

From Dev

Query to run through each instance. MS-Access

From Dev

Ms ACCESS and SQL: round to two decimals through query

From Dev

How to pass parameters to a function through html and access by javascript?

From Dev

Run query with parameters and display in ListBox MS Access 2013

From Dev

Odd results in MS Access Query using a DSUM function and parameters

From Dev

Query in a query? (MS Access)

From Dev

Access Query uses Form Inputs as Parameters - Runs manually, not through Form

From Dev

Execute SQL Server Pass-Through Query From Access VBA

From Dev

pass parameters to record source with query Access2007

From Dev

Setting Parameters through url javaplay

From Dev

setting a format for a date in ms access

From Dev

setting a format for a date in ms access

From Dev

MS Access query not working

From Dev

performance in MS Access query

From Dev

MS Access query not working

From Dev

MS access query aggregation

From Dev

MS Access : Query

From Dev

MS access query List

From Dev

performance in MS Access query

From Dev

Updating MS Access Query?

From Dev

Delphi, MS Access, ADO: "a query to a query with parameters" doesn't give proper result

Related Related

HotTag

Archive