I am using Access 2000 here. What I am doing is this:
1. Open up a Master database
2. Import a table from another database to the Master database using DoCmd.Transfer Database as Table1
3. Copy this imported Table1 within the Master database as Table2 using DoCmd.CopyObject
4. Run a query to renumber the data in Table2
5. Open Form1 which uses a query to order by the newly renumbered data and display it in Listbox1 from Table2 on Form1
The problem I am having is that the newly copied and renumbered data in Table2 is not showing up in my ListBox1 on Form1. I do get the data but it is not correctly renumbered. If I open Table2 and view the data it is correctly numbered the way it should be. I think the process is happening too fast for Form1 and Listbox1 to grab the newly formatted data before Form1 opens. Is there a way to ensure that the copy and renumber process is totally completed before opening Form1 and ListBox1 to display the correct data. Thank you for any suggestions.
1. Open up a Master database
2. Import a table from another database to the Master database using DoCmd.Transfer Database as Table1
3. Copy this imported Table1 within the Master database as Table2 using DoCmd.CopyObject
4. Run a query to renumber the data in Table2
5. Open Form1 which uses a query to order by the newly renumbered data and display it in Listbox1 from Table2 on Form1
The problem I am having is that the newly copied and renumbered data in Table2 is not showing up in my ListBox1 on Form1. I do get the data but it is not correctly renumbered. If I open Table2 and view the data it is correctly numbered the way it should be. I think the process is happening too fast for Form1 and Listbox1 to grab the newly formatted data before Form1 opens. Is there a way to ensure that the copy and renumber process is totally completed before opening Form1 and ListBox1 to display the correct data. Thank you for any suggestions.