G
Gator
I have a form with two option buttons and a list box. the list box data
depends on what option is selected. Each option used a different table to
draw in the data. However, I have combined the data into one table. The
table contains a list of Accounts.
01 01 01
01 01 02
01 50 01
What I need is when Option1 is selected it draws the accounts that do not
have 50 in the middle and the other Option2 draws only the accounts with 50
in the middle.
Can someone help with the expression?
Here is code I was using in the initial setup using two tables...
Option1 Click
If Option1.value =True then
List1.Rowsource = "SELECT LEFT(ID,2) FROM Table1"
Else
List1.Rowsource = "SELECT LEFT(ID,2) FROM Table2"
End If
Now the RowSource will be the same table just a different criteria. Can
someone help construct?
depends on what option is selected. Each option used a different table to
draw in the data. However, I have combined the data into one table. The
table contains a list of Accounts.
01 01 01
01 01 02
01 50 01
What I need is when Option1 is selected it draws the accounts that do not
have 50 in the middle and the other Option2 draws only the accounts with 50
in the middle.
Can someone help with the expression?
Here is code I was using in the initial setup using two tables...
Option1 Click
If Option1.value =True then
List1.Rowsource = "SELECT LEFT(ID,2) FROM Table1"
Else
List1.Rowsource = "SELECT LEFT(ID,2) FROM Table2"
End If
Now the RowSource will be the same table just a different criteria. Can
someone help construct?