pass-through

MS Access pass through dependent on form value

孤街浪徒 提交于 2019-12-01 22:36:57
How do I assign a pass-through query to Row Source that is dependent on another value in the form? Essentially I want to do this: SELECT x.companyid, x.companyname, x.productid FROM x WHERE (((x.CompanyID) = [Forms]![Reporting]![CompanyID_Control])) ORDER BY x.productid; But of course pass-through queries do not support reference to any form controls. I have read here that there is a method via VBA, however I do not know how to use VBA in conjunction with the Row Source of a control. As Remou stated in his answer, linked tables will make this easier. However, if you have a pass-through query

access-SQL pass-through query (creating SP) error

主宰稳场 提交于 2019-12-01 21:09:56
I am trying to create a stored procedure using pass-through query in SQL Server 2012, using MS Access 2010. IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'SCHtest') EXECUTE sp_executesql N'create schema SCHtest' GO CREATE PROCEDURE [SCHtest].[SQLLrtest_2] AS BEGIN INSERT INTO [dbo].[UploadTest] (.....) In Access I get this error: Run time error '3146': [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax nera 'GO'. (#102) [Microsoft][ODBC SQL Server Driver][SQL Server]'CREATE/ALTER PROCEDURE' must be the first statement in a query batch. (#111) And if I copy-paste code to

Pass-through authentication not working. IIS 7

六眼飞鱼酱① 提交于 2019-12-01 18:50:12
On IIS 7 I set up an application called "XYZ", and an application pool for it. I set the identity of this application pool to a custom user, let's call it "Mario". Mario has NTFS access to the folder/files in which XYZ points to (remote share). In the XYZ authentication settings, only windows authentication is enabled: In the providers for windows authentication, only NTLM is active: Physical path credentials for XYZ are set to application user / pass-through: So the problem is, when I go to http://server.com/XYZ I get challenged (which is to be expected), but I does not matter what I put in,

Access VBA Parameter in passthrough query to SQL Server

心不动则不痛 提交于 2019-11-28 14:22:04
I have several queries in an MS Access database. Some of these use parameters. I use the following code in VBA to provide the query with these parameters: VBA Dim startDate As Date Dim endDate As Date Dim dbs As DAO.Database Dim qdf As DAO.QueryDef Dim rst As DAO.Recordset If IsNull(Me.dpFrom) Or IsNull(Me.dpTo) Then MsgBox "Please select a date!" ElseIf (Me.dpFrom.Value > Me.dpTo.Value) Then MsgBox "Start date is bigger than the end date!" Else startDate = Me.dpFrom.Value endDate = Me.dpTo.Value Set dbs = CurrentDb 'Get the parameter query Set qdf = dbs.QueryDefs("60 Dec") 'Supply the

How to make a passthrough / passthru query editable?

怎甘沉沦 提交于 2019-11-28 13:37:07
In the Microsoft Access 2007 with an SQL Server Backend, we usually take a linked table from the SQL Server as Form.RecordSource of an editable form for a single table data modification. A local query is used for cross tables editions that combines fields from several linked tables. The local query must be updatable itself in order to modify data on the editing form. Now we are planning to replace all local queries by Passthrough queries in order to use native SQL Server tables directly. I've tried to create a very simple passthru query named qrySelProductsPassThroughEditable with the

How to make a passthrough / passthru query editable?

徘徊边缘 提交于 2019-11-27 07:48:43
问题 In the Microsoft Access 2007 with an SQL Server Backend, we usually take a linked table from the SQL Server as Form.RecordSource of an editable form for a single table data modification. A local query is used for cross tables editions that combines fields from several linked tables. The local query must be updatable itself in order to modify data on the editing form. Now we are planning to replace all local queries by Passthrough queries in order to use native SQL Server tables directly. I've