Sharepoint Web 数据库查找字段可以使用查询吗?
我正在使用此表,并希望在一列中为用户提供查找列表。如果我想使用整个桌子,我可以轻松做到这一点。
但我想在此查找中仅显示数据的子集。
像这样:SELECT ID, Name FROM Items WHERE Type = 'SomeType'
我有一个查询,但当我进入查找向导时,我无法选择查询。这是为什么呢?
这是 Sharepoint 2010,正在 Access 中编辑 Web 数据库。
I'm working with this table and want to offer the user a Lookup list in one column. I can do this easy if I want to use a whole table.
But I want to show in this lookup just a subset of data.
Like this: SELECT ID, Name FROM Items WHERE Type = 'SomeType'
I have a query, but when I go into Lookup Wizard, I cannot select Queries. Why is this?
This is Sharepoint 2010, editing the Web Database in Access.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
如果您构建一个连续表单,那么您只需为其中一列放入一个组合框控件,然后就可以像使用查询构建器一样构建 SQL。
对于大多数访问应用程序来说,允许用户直接使用表打开和编辑数据实际上从来都不是很实际。
对于已发布的 Web 应用程序,您甚至不允许在 Web 端执行此类操作(因此您可以在客户端编辑表,但不能在浏览器中编辑 Web 端)。
在这里使用连续形式应该可以正常工作。因此,放入一个组合框,根据需要构建您的查询。将列数设置为 2 并将此组合框绑定到要保存第一个 ID 值的基础列,然后您就可以开始比赛了。
If you build a continues form then you would simply drop in a combo box control for one of the columns and then you can build your SQL as you have using the query builder.
For most access applications it really never was very practical to allow users to open and edit data by using tables directly anyway.
And for published web applications you not even allowed to do as such on the web side (so you can edit tables client side, but not web side in a browser).
Using a continues form here should work just fine. So drop in a combo box, build your query as you have. Set number of columns to 2 and bind this combo box to whatever the underlying column is that this first ID value is to be saved to, and you off to the races.