在VB的datashet视图中运行查询(使用SQL) [英] Run query in datashet view from VB (using SQL)

查看:117
本文介绍了在VB的datashet视图中运行查询(使用SQL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,


为你们提供了另一个奇怪而美妙的问题。


我有一个带有动态行源的列表框( SQL)由VB提供。


我想做的是允许用户双击列表框并在数据表模式下打开数据。

有效地将rowsource属性中的SQL字符串。但我不确定如何打开它...


干杯

解决方案

可以打开动作查询跑。 SELECT查询无法在不创建(或更新现有)QueryDef的情况下打开为简单的SQL。


如果我创建一个querydef(在双击上),我需要保存查询吗?完成后删除它?


你可以尝试这个,以及你可以复制的模板QueryDef对象,但它确实阻止你的数据库作为一个多用户对象。

Good day,

got another strange and wonderful question for y''all.

I have a listbox with dynamic rowsource (SQL) fed by VB.

what i would like to do is allow the user to double click the listbox and open the data in datasheet mode.
effectively string the SQL from the rowsource property. but im not sure of how to open it like this...

Cheers

解决方案

Action queries can be opened and run. SELECT queries cannot be opened as simple SQL without creating an (or updating an existing) QueryDef.


If i create a querydef (on the double click) would i need to save the query then? and then delete it when done?


You could try this, along with a template QueryDef object you could copy from, but it does stop your database from working as a multi-user object.


这篇关于在VB的datashet视图中运行查询(使用SQL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆