我对这些东西并不擅长。我正在寻找一个可以查找2个列名的查询。
Psudo查询:
select * from tblStepCalendar
where groupNr + groupName like " & txtGroupNum.Value txtGroupName.Value & "*';"
这是我的一个查询,它可以在我的代码中运行:
db.OpenRecordset("Select * from tblStepCalendar Where groupNr like '*" & txtGroupNum.Value & "*';", dbOpenDynaset)
答案 0 :(得分:2)
这个怎么样:
db.OpenRecordset("Select * from tblStepCalendar " & _
"Where (groupNr like '*" & txtGroupNum.Value & "*') " & _
" AND (groupName like '*" & txtGroupName.Value & "*')" & _
";", dbOpenDynaset)