Is it possible to connect an Access form to a SQL Server view

前端 未结 4 1193
感情败类
感情败类 2021-01-26 11:15

I\'m migrating an Access DB to SQL Server and everything is slowly coming along but Im not sure how to connect the Access forms to the SQL Server views.

So far I have al

4条回答
  •  面向向阳花
    2021-01-26 12:09

    The problem is here

    WHERE ((([SummaryYQ_LOV].[SummaryYQ]) = forms!YQ_Location.text5 ))

    You cannot convert such Access query into a SQL View, but you can use Stored Procedure instead and pass value from the field forms!YQ_Location.text5 as parameter.

    Also, you don't need this TOP 9223372036854775807 WITH TIES it is redundant.

提交回复
热议问题