Thanks. I notice that. I have updated it. However, it still has an error: missing),], or It Item in query expression '([CM Code] = '326'.'
Debug: DoCmd.OpenReport strReport, lngView, , strWhere
Can you help me to spot error below. Many thanks
If Len(Me.txtStartCmCode & vbNullString) <> 0...