以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  此题何解?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=21523)

--  作者:jinzhengbe
--  发布时间:2012/7/16 2:56:00
--  此题何解?

如图。 文本框内 要输入数据查询 ID 值,因为 ID 值是整数列, 所以下面的代码不好用,所以请高人指点一下啊。谢谢了!!

 

 

Dim txt As instring = e.Form.Controls("TextBox3")
Dim tbl As Table = Tables("order")
If txt = "" Then
    tbl.Filter = ""
Else
    txt = "\'*" & txt & "*\'"
    tbl.Filter = "ID = " & “


图片点击可在新窗口打开查看此主题相关图片如下:??.png
图片点击可在新窗口打开查看

--  作者:狐狸爸爸
--  发布时间:2012/7/16 8:06:00
--  

你最基本的概念都没有掌握,就开始做程序了。

 

Dim txt As String = e.Form.Controls("TextBox3").Value
Dim tbl As Table = Tables("order")
If txt = "" Then
    tbl.Filter = ""
Else
    tbl.Filter = "ID = " & txt
End If

 

建议你看看:

http://www.foxtable.com/help/topics/1647.htm

http://www.foxtable.com/help/topics/1284.htm

http://www.foxtable.com/help/topics/1058.htm

 


--  作者:jinzhengbe
--  发布时间:2012/7/16 22:01:00
--  

看了n次都不懂,留言也留了n次了。

总之还是要感谢 狐狸先生了

[此贴子已经被作者于2012-7-16 22:02:03编辑过]