I'm getting a "type mismatch" erro on this line. Auditor code is a number and payment month is a date field that I've formatted into "mmmm yyyy". It doesn't open the form, but fails here.
Any help is appreciated. Thanks.
DoCmd.OpenForm "frmAuditorLookup", , , "[auditor_code] = " & Me.Auditor And "[paymentmonth] = "" & Me.PaymentMonth]
Any help is appreciated. Thanks.
DoCmd.OpenForm "frmAuditorLookup", , , "[auditor_code] = " & Me.Auditor And "[paymentmonth] = "" & Me.PaymentMonth]