Dim val支行名称 As String
Dim val差错日期 As String
Dim val较严重性差错 As String
Dim val严重性差错 As String
Dim val一般性差错 As String
Dim val不规范 As String
Dim val查询 As String
If 支行名称.Value <> "< 哈哈 >" Then
val支行名称 = "='" & 支行名称.Value & "'"
Else
val支行名称 = "<>'I do not know!'"
End If
If 较严重性差错.Value <> "< 哈哈 >" Then
val较严重性差错 = "='" & 较严重性差错.Value & "'"
Else
val较严重性差错 = "<>'I do not know!'"
End If
If 严重性差错.Value <> "< 哈哈 >" Then
val严重性差错 = "='" & 严重性差错.Value & "'"
Else
val严重性差错 = "<>'I do not know!'"
End If
If 一般性差错.Value <> "< 哈哈 >" Then
val一般性差错 = "='" & 一般性差错.Value & "'"
Else
val一般性差错 = "<>'I do not know!'"
End If
If 不规范.Value <> "< 哈哈 >" Then
val不规范 = "='" & 不规范.Value & "'"
Else
val不规范 = "<>'I do not know!'"
End If
If 查询.Value <> "< 哈哈 >" Then
val查询 = "'" & 查询.Value & "'"
Else
val查询 = "''"
End If
If 差错日期.Value <> "< 哈哈 >" Then
val差错日期 = ">#" & Month(差错日期.Value) & "/" & Day(差错日期.Value) & "/" & Year(参加工作日.Value) & "#"
Else
val差错日期 = ">#1/1/1900#"
End If
'-----------------------------------------------------
Dim dbs As Database, strSQL1 As String, strSQL2 As String
Dim qdf1 As QueryDef
' Return reference to current database.返回参数到当前数据库
Set dbs = CurrentDb