I'm trying to create a form that would include a listbox and a query would run depending on the result in the listbox. It would be similar to a filter by form, except I'd be providing the values in a listbox. I assume I need to use VBA to accomplish this, but I don't know how to include an SQL statement into my VBA code.
Here is the SQL statement I have:
SELECT [tblResolution].[Number], [tblResolution].[Type], [tblResolution].[Description], [tblResolution].[Date]
FROM tblResolution
WHERE (((tblResolution.Type)=[]));
Basically I want the listbox to fill in the WHERE part.
Does anyone know of any good resources on how to incorporate SQL statements into VBA so that I can learn how to do this?
Thanks.
Here is the SQL statement I have:
SELECT [tblResolution].[Number], [tblResolution].[Type], [tblResolution].[Description], [tblResolution].[Date]
FROM tblResolution
WHERE (((tblResolution.Type)=[]));
Basically I want the listbox to fill in the WHERE part.
Does anyone know of any good resources on how to incorporate SQL statements into VBA so that I can learn how to do this?
Thanks.