Group: microsoft.public.access.modulesdaovba · Group Profile · Search for Qbe in microsoft.public.access.modulesdaovba
Author: Ian Shaw
Date: Apr 25, 2008 20:35
In the QBE Grid, with Like "INT'L" in Criteria, my Query works fine. It fails when I try to create a dynamic Query with this VBA: ' Build criteria string for Broker For Each varItem In Me.lstBroker.ItemsSelected strBroker = strBroker & ",'" & Me.lstBroker.ItemData(varItem) & "'" Next varItem If Len(strBroker) = 0 Then strBroker = "Like " * "" Else strBroker = Right(strBroker, Len(strBroker
|