How To Use A SQL SELECT Statement With Access VBA
Hi Everyone,
I was wondering if anyone had a good resource for SQL Statement examples in Access VBA using just simply select, from where and OR - example
SELECT*column1, *column2, ...
FROM*table_name
WHERE*condition 1*OR*condition2 *OR*condition3 ...
recordsource = MyListBox
What I am trying to do is fill an Unbound ListBox on a form (Named MAINFORM) (Data Source tbleMAIN)
where tblMAIN.RECORDI D OR forms!MAINFORM. combobox1(0) OR forms!MAINFORM. combobox2(0)
Oh and one more thing, I would also like to filter out ID's that are 0 (Zero) 👍🏽
Hi Everyone,
I was wondering if anyone had a good resource for SQL Statement examples in Access VBA using just simply select, from where and OR - example
SELECT*column1, *column2, ...
FROM*table_name
WHERE*condition 1*OR*condition2 *OR*condition3 ...
recordsource = MyListBox
What I am trying to do is fill an Unbound ListBox on a form (Named MAINFORM) (Data Source tbleMAIN)
where tblMAIN.RECORDI D OR forms!MAINFORM. combobox1(0) OR forms!MAINFORM. combobox2(0)
Oh and one more thing, I would also like to filter out ID's that are 0 (Zero) 👍🏽
Comment