Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:如何设置不加载数据

1楼
lihe60 发表于:2010/12/27 9:50:00

在BeforeLoadInnerTable属性中,如何设置加载某个表,不加载其他任何表的代码?

2楼
lihe60 发表于:2010/12/27 9:51:00

If e.DataTableName = "用户管理" Then
    e.SelectString = "Select * From {用户管理}"
Else
    e.SelectString = "Select * From {" & e.DataTableName & "} where 单据类型=''"
End If

这个代码有什么问题?

3楼
狐狸爸爸 发表于:2010/12/27 9:55:00

请看看此事件的说明:

 

http://help.foxtable.com/topics/0669.htm

 

就会明白,该事件没有e参数SelectString,BeforeLoadOuterTable事件才有。

 

一个针对内部表,一个针对外部表,使用方法也有所差异。

4楼
lihe60 发表于:2010/12/27 12:43:00

BeforeLoadOuterTable

If e.DataTableName = "用户管理" Then
    e.SelectString = "Select * From {用户管理}"
Else
    e.SelectString = ""
End If

运行代码有点问题,不知是为什么?错在哪里?

 

5楼
lihe60 发表于:2010/12/27 12:56:00
我的目的是除了加载用户管理,在打开软件时不加载其他任何表
6楼
狐狸爸爸 发表于:2010/12/27 14:41:00

如果是不加载数据,那么:
 
If e.DataTableName <> "用户管理" Then
     e.SelectString = "Select * From " & e.DataTableName & " Where [_Identify] Is Null"
 End If

共6 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.