B
BeWyched
I am re-engineering a large Access application to feed off a SQL Server
database.
The application has many instances where List Box RowSources are set as SQL
statements through VBA.
I wish the List Boxes now to be fed by pass-through queries to the SQL
database. Can I do this directly through VBA?
The only solution I've got so far is to create an empty pass-through query
using the query wizard, and set it as the List Box's RowSource. I can then
change the query's .SQL setting through VBA and re-query the List Box. This
works but is cumbersome.
Anyone any better ideas?
Thanks in advance.
BW
database.
The application has many instances where List Box RowSources are set as SQL
statements through VBA.
I wish the List Boxes now to be fed by pass-through queries to the SQL
database. Can I do this directly through VBA?
The only solution I've got so far is to create an empty pass-through query
using the query wizard, and set it as the List Box's RowSource. I can then
change the query's .SQL setting through VBA and re-query the List Box. This
works but is cumbersome.
Anyone any better ideas?
Thanks in advance.
BW