M
Mike
I am writing a VBA macro in Word that opens an Access
database called Rolodex. I intend to be able to insert an
address into the Word document from the database. The
macro is also able to create a new access record, delete
a record, or edit a record.
I am listing the Company name in a ListBox for the user
to select from. When I add a new record to the access
database it is not sorted properly instead it is listed
at the top of the ListBox.
To sort the data I opened up the database using Access
and sorted the list by Company name. Access is then
sorted correctly but the next time I run the Word macro
and the ListBox is populated with the Company names it is
still not sorted properly. The new records are still
listed at the top of the ListBox even though Access is
sorted correctly.
Why is Word not listing the Company names in the same
order as Access?
How can I get the Company names listed alphabetically in
the Word ListBox?
Also how can I sort the Access database by Company name
from the Word VBA macro so that I do not have to open
Access and sort the data each time a new record is added?
Mike
database called Rolodex. I intend to be able to insert an
address into the Word document from the database. The
macro is also able to create a new access record, delete
a record, or edit a record.
I am listing the Company name in a ListBox for the user
to select from. When I add a new record to the access
database it is not sorted properly instead it is listed
at the top of the ListBox.
To sort the data I opened up the database using Access
and sorted the list by Company name. Access is then
sorted correctly but the next time I run the Word macro
and the ListBox is populated with the Company names it is
still not sorted properly. The new records are still
listed at the top of the ListBox even though Access is
sorted correctly.
Why is Word not listing the Company names in the same
order as Access?
How can I get the Company names listed alphabetically in
the Word ListBox?
Also how can I sort the Access database by Company name
from the Word VBA macro so that I do not have to open
Access and sort the data each time a new record is added?
Mike