Hi All,
I would like to end the function if below results in null value and continue function if WPass is not null
I am not sure how to end the function
Please could you advise?
I would like to end the function if below results in null value and continue function if WPass is not null
I am not sure how to end the function
Please could you advise?
If Nz(DLookup("[WPass]", "[GMailSettingsQry]")) = "" Then
DoCmd.OpenQuery "Clear Email Setting Tbl Local"
DoCmd.OpenQuery "Update Email Setting Tbl Local"
DoCmd.OpenForm "Airbus Mail Frm - New DAW"
End If
End Function
Dim rs As Recordset
Dim vMsg As String
Dim vSubject As String
Dim vReportPDF As String
Set rs = CurrentDb.OpenRecordset("SELECT * FROM EmailTBLQry_NewDaw; ")
If rs.RecordCount > 0 Then
rs.MoveFirst
Do.........