通过code于2003年MSACCESS动态地创建查询[VBA]动态、code、VBA、MSACCESS

由网友(你糟蹋了我的心)分享简介:您好我需要通过code(又名VB)创建于2003年MSACCESS查询 - ?我怎么能做到这一点。Hi I need to create a query in MSAccess 2003 through code (a.k.a. VB) -- how can I accomplish this?推荐答案一个模糊的...

您好我需要通过code(又名VB)创建于2003年MSACCESS查询 - ?我怎么能做到这一点。

Hi I need to create a query in MSAccess 2003 through code (a.k.a. VB) -- how can I accomplish this?

推荐答案

一个模糊的回答了一个模糊的问题:)

A vague answer for a vague question :)

strSQL="SELECT * FROM tblT WHERE ID =" & Forms!Form1!txtID 

Set qdf=CurrentDB.CreateQueryDef("NewQuery",strSQL)
DoCmd.OpenQuery qdf.Name
阅读全文

相关推荐

最新文章