Facebook Sharer
选择您要替换的背景颜色:
【农历新年】背景图片:
个性化设定
 注册  找回密码
查看: 566|回复: 1
打印 上一主题 下一主题

会vb6 的高手,来帮忙下~~~

[复制链接]

24

主题

2

好友

199

积分

高级会员

Rank: 3Rank: 3Rank: 3

跳转到指定楼层
1#
发表于 2013-7-19 12:30 PM |只看该作者 |倒序浏览
我是用 2个dtpicker 和 1个command button ,以日期来显示报告

例如 :from 1/7/2013 to 2/7/2013 然后按 show button ,可是出现错误

错误时:run-time error '13':

type mismatch


code:
Private Sub cmdshow_Click()
Dim start1 As Date
Dim start2 As Date
Dim lvSQL As String
start1 = Format(DTPickerStart.Value, "dd MMM yyyy")
start2 = Format(DTPickerEnd.Value, "dd MMM yyyy")
Dim rs As New ADODB.Recordset
rs.CursorLocation = adUseClient
lvSQL = "SELECT * FROM CustomerData where Date BETWEEN "" & start1 &" And " & start2 & "
rs.Open lvSQL
    Set AllCusRpt.DataSource = rs
    AllCusRpt.Show
  
End Sub

红色字那排debug

帮帮忙~~~感激不尽!!




收藏收藏0

3

主题

10

好友

1515

积分

白银长老

Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

2#
发表于 2013-7-19 02:13 PM |只看该作者
好像是这个"放错位罢了


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2024-12-26 03:03 PM , Processed in 0.092931 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

Ultra High-performance Dedicated Server powered by iCore Technology Sdn. Bhd.
Domain Registration | Web Hosting | Email Hosting | Forum Hosting | ECShop Hosting | Dedicated Server | Colocation Services
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部