关于datediff函数的问题
我想在8:00到17:00这段时间textbox1= "good ",程序如下:
If DateDiff( "h ", Now.Hour, "8:00 ") > 0 And DateDiff( "h ", Now.Hour, "17:00 ") > 0 Then
TextBox1.Text = "good "
End If
提示错误是 "无法将参数“Date1”转换为类型“Date” "
请问是哪里错了,请高手帮帮忙
[解决办法]
参数类型不对
If Now.Hour > 8 And Now.Hour < 17 Then
TextBox1.Text = "good "
End If