G
Guest
Ok since the last question was so easily answered I thought I might try
another. This could get adicitive...
Here's the deal, I have a list box that I am filling with an SQL statment
from VBA so I can use the users input from another list box to get the right
data in this one. The problem is the field that contains the data I want to
put in this list box has some text and some integers in it. I want to be
able to try to sort the data like it is numbers first and if that does not
work have it swich to a second SQL where I remove the CSNG function and sort
it like text.
Man that is a long explaination. Here is what is happening now on some
selections of the first list box it is going fine, while on others I am
getting a Data Type Mismatch error as it trys to execute the CSNG. Is there
a way that I can trap that error and have it go to a sub or function that
replaces the SQL in the row source.
another. This could get adicitive...
Here's the deal, I have a list box that I am filling with an SQL statment
from VBA so I can use the users input from another list box to get the right
data in this one. The problem is the field that contains the data I want to
put in this list box has some text and some integers in it. I want to be
able to try to sort the data like it is numbers first and if that does not
work have it swich to a second SQL where I remove the CSNG function and sort
it like text.
Man that is a long explaination. Here is what is happening now on some
selections of the first list box it is going fine, while on others I am
getting a Data Type Mismatch error as it trys to execute the CSNG. Is there
a way that I can trap that error and have it go to a sub or function that
replaces the SQL in the row source.