Dim htid As String
htid = Nz(DLookup("合同ID", "合同副", "合同ID='" & Me.Parent!合同ID & "'"),"")
if len(trim(htid)) >0 then
MsgBox htid
else
Msgbox "无此合同"
end if
作者: stvent 时间: 2011-5-2 11:04
鱼儿游游 发表于 2011-5-2 01:55
Dim htid As String
htid = Nz(DLookup("合同ID", "合同副", "合同ID='" & Me.Parent!合同ID & "'")," ...