C
Chakey
I open a connection in an Access module. I then want to create a recordset
and populate it from a view that I am linked to through Access. While the
table behind the view is quite large in both fields and records, the view
limits it to the last 2 months and only the 2 fields I need for my
application. The view also groups and sorts the data by the 2 fields so I
don't have to do that with code.
I have no problem creating the recordset from the main table, but filtering
by my date range takes forever, though it does not timeout. Also there is no
grouping or sorting. However, now I timeout. I have seen in the posts that
there are ways to increase timeout durations, but don't know how to apply the
code to an already open connection when running an SQL query (within VB) to
build the recordset. What do I do?
Thanks for your time.
and populate it from a view that I am linked to through Access. While the
table behind the view is quite large in both fields and records, the view
limits it to the last 2 months and only the 2 fields I need for my
application. The view also groups and sorts the data by the 2 fields so I
don't have to do that with code.
I have no problem creating the recordset from the main table, but filtering
by my date range takes forever, though it does not timeout. Also there is no
grouping or sorting. However, now I timeout. I have seen in the posts that
there are ways to increase timeout durations, but don't know how to apply the
code to an already open connection when running an SQL query (within VB) to
build the recordset. What do I do?
Thanks for your time.