菜鸟问题:select语句中时间查询{时间= '" & CStr(Text2.Text) & "'"}。是吗??急
If (Combo1.Text = "科研项目情况表") Then
selectstr = "select * from 科研项目情况表 WHERE 项目名称 ='" & Text1.Text & "' and 时间= '" & CStr(Text2.Text) & "'"
rsControlsXM.Open selectstr, cnControls, adOpenKeyset, adLockOptimistic
Set DataGrid1.DataSource = rsControlsXM
Form3.SSTab1.Tab = 0
End If