Hi Guys,
Good Day!
you guys don't mind if i ask more silly questions right.
..
i'm try to pass this argument .. my code can't validate, if it is a drawing or not, its just saying all is not a drawing .. some thing like proceed the filter if it contains Document type drawings.
Dim DocRefNo As String
Dim stfilter As String
If Me.DocumentType.Value <> "*DWG*" Or Me.DocumentType.Value <> "*SDW*" Or Me.DocumentType.Value <> "*ASB*" Then
MsgBox "This Submission is not a Drawing" & vbCr & vbCr & "You can only search drawing on this register", vbInformation, ""
Else
stfilter = stfilter & "([SubmittalRefNo] LIKE '*" & Me.SubmittalSearchBx & "*')"
Forms("SubmittalDrawingHistory").Form.Filter = stfilter
Forms("Drawings").Form.Filter = stfilter
Forms("SubmittalDrawingHistory").Form.FilterOn = True
Forms("Drawings").Form.FilterOn = True
End If
Good Day!
you guys don't mind if i ask more silly questions right.

i'm try to pass this argument .. my code can't validate, if it is a drawing or not, its just saying all is not a drawing .. some thing like proceed the filter if it contains Document type drawings.
Dim DocRefNo As String
Dim stfilter As String
If Me.DocumentType.Value <> "*DWG*" Or Me.DocumentType.Value <> "*SDW*" Or Me.DocumentType.Value <> "*ASB*" Then
MsgBox "This Submission is not a Drawing" & vbCr & vbCr & "You can only search drawing on this register", vbInformation, ""
Else
stfilter = stfilter & "([SubmittalRefNo] LIKE '*" & Me.SubmittalSearchBx & "*')"
Forms("SubmittalDrawingHistory").Form.Filter = stfilter
Forms("Drawings").Form.Filter = stfilter
Forms("SubmittalDrawingHistory").Form.FilterOn = True
Forms("Drawings").Form.FilterOn = True
End If
Attachments
Last edited by a moderator: