Rss & SiteMap

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

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

标题:关于姓名首字母模糊查询如何实现的问题

1楼
yjk1023 发表于:2011/10/29 11:14:00

如何实现姓名、身份证号码、备注、单位等模糊查询已实现,就是以下代码:

Dim txt As String = e.Form.Controls("TextBox10").Text
Dim tbl As Table = Tables("退休人员信息11")
If txt = "" Then
    tbl.Filter = ""
Else
    txt = "'*" & txt & "*'"
    tbl.Filter = "姓名 Like " & txt & " Or 身份证号码 Like " & txt & " Or 备注 Like " & txt & " or 单位 like " & txt
End If

如何得到姓名的首字母也已知道

dim xm as string

dim s  as string

with tables("表名")

xm= .current("姓名")

s = getpy(xm.true)

end with

但是2者如何结合才能实现姓名首字母的模糊查询,我不知道如何写,请高手给写个代码,先谢了!

 

2楼
don 发表于:2011/10/29 11:42:00
http://www.datasoft.com.cn/dispbbs.asp?boardid=2&Id=12145
共2 条记录, 每页显示 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.