Guest_imported
New member
- Jan 1, 1970
- 0
OS:Windows 98SE,Access 2000.
I have two .mdb files. .mdb #1 has data, and .mdb #2 has forms, reports, and one local table. I have a good ADODB connection to both .mdb files, and the apropriate recordsets. I can populating the local table(tmpDevices) in .mdb #2 fine. However I am unable to easily display it in a listbox. Following Code:
'-------------Begin code---------
Private Sub Form_Load()
lstDevices.RowSourceType = "Table/Query"
lstDevices.RowSource = "tmpDevices"
lstDevices.Requery
End Sub
'---------End Code--------
I know for a fact that the data is in the table before this runs. The problem is that it does not show the contents of lstDevices until I unload, and reload the form.
P.S. I also have code that adds items to the local table "tmpDevices", The problem is that when the first device is added, and I requery, I get nothing, however after the first entry it seems to work fine. I have decided to solve my first problem, with the hope that it gives a solution to the other.
Any Ideas?
I have two .mdb files. .mdb #1 has data, and .mdb #2 has forms, reports, and one local table. I have a good ADODB connection to both .mdb files, and the apropriate recordsets. I can populating the local table(tmpDevices) in .mdb #2 fine. However I am unable to easily display it in a listbox. Following Code:
'-------------Begin code---------
Private Sub Form_Load()
lstDevices.RowSourceType = "Table/Query"
lstDevices.RowSource = "tmpDevices"
lstDevices.Requery
End Sub
'---------End Code--------
I know for a fact that the data is in the table before this runs. The problem is that it does not show the contents of lstDevices until I unload, and reload the form.
P.S. I also have code that adds items to the local table "tmpDevices", The problem is that when the first device is added, and I requery, I get nothing, however after the first entry it seems to work fine. I have decided to solve my first problem, with the hope that it gives a solution to the other.
Any Ideas?