Solved Open Form and filter results

Snowflake68

Registered User.
Local time
Today, 16:45
Joined
May 28, 2014
Messages
464
I have a piece of VBA code that opens a form and filters the results with a two column criteria, which works perfectly.

Code:
DoCmd.OpenForm "sfrm_Report_Detail", acFormDS, , "[Status]= '" & Me![Status] & "'  AND [Table]= '" & Me![Table] & "'", , acDialog

However I need to add a third filter criteria (to the WHERE condition) for [Type] but I cannot seem to get the syntax correct with the AND and quotes in the correct place.

Thanks
Caroline
 
Yah Ive just managed to do this myself :)

Code:
DoCmd.OpenForm "sfrm_Report_Detail", acFormDS, , "[Status]= '" & Me![Status] & "'  AND [Table]= '" & Me![Table] & "'AND [Type]= '" & Me![Type] & "'", , acDialog
 

Users who are viewing this thread

Back
Top Bottom