access的SQL语法中没有自定义函数,也不能象SQL Server中一样用变量、游标、子查询等方法来灵活处理查询语句 但是,在Access环境中,透过模块中的过程,可利用功能强大的VB语言,生成复杂需求的查询语句。 我想将同公司的内容合在一起如: 请问我在access里面该如可操作?请问有什么好的方法去处理?? public Function CombStr(TableName As String, FieldName As String, GroupField As String, GroupValue As String) As String Dim ResultStr As String 建立查询: select T.comname, combstr("T","Name","comname",t.comname) AS CombName, combstr("T","ses","comname",t.comname) AS CombSex ---------------------------------------------------------------------------------------------------- |
|站长邮箱|小黑屋|手机版|Office中国/Access中国
( 粤ICP备10043721号-1 )
GMT+8, 2025-2-20 04:43 , Processed in 0.067650 second(s), 17 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.