发布网友 发布时间:2022-04-24 01:00
共1个回答
热心网友 时间:2023-04-23 09:09
举例,参考:
Public Function SQLTest()
Dim strSQL As String
Dim strMyString As String
strMyString = "jason"
strSQL = "SELECT * FROM tblMain " & _
"WHERE [TextField] = strMyString"
Debug.Print strSQL
CurrentDb.OpenRecordset strSQL
End Function