Rss & SiteMap

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

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

标题:数据源更改的语法更改

1楼
asionwong 发表于:2024/2/26 9:05:00
Dim sd As Date=e.Form.Controls("datetimepicker2").value
Dim ed As Date=e.Form.Controls("datetimepicker3").value
Dim Filter As String
With e.Form.Controls("datetimepicker2")
    If .Value IsNot Nothing Then
        If Filter>"" Then
            Filter=Filter & " And "
        End If
        Filter=Filter & "订单日期>=#"& .Value &"#"
    End If
End With
With e.Form.Controls("datetimepicker3")
    If .Value IsNot Nothing Then
        If Filter>"" Then
            Filter=Filter & " And "
        End If
        Filter=Filter & "订单日期<=#"& .Value &"#"
    End If
End With
With e.Form.Controls("dropbox2")
    If .Value IsNot Nothing Then
        If Filter>"" Then
            Filter=Filter & " And "
        End If
        Filter=Filter & "供方编码 ='"& .Value &"'"
    End If
End With
If Filter>"" Then
    DataTables("采购订单_table2").LoadFilter=Filter 
    DataTables("采购订单_table2").Load
End If
之前用的数据源是ACCESS的,现在改为SQL SERVICE的,请问这个代码该怎么改?谢谢
2楼
有点蓝 发表于:2024/2/26 9:08:00
参考:http://www.foxtable.com/webhelp/topics/2343.htm
共2 条记录, 每页显示 10 条, 页签: [1]

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

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