GKChesterton
Programmer
My database in Access 2003 lets a user examine items. I'd like the user to able to compare items side-by-side. I can design forms that allow this ... but why not just have the database open twice? Two instances of the database.
I know of three methods that could be viable:
[ol A][li]Open DB, then use Access Open dialog to open it again.[/li]
[li]Open using VBA Shell.[/li]
[li]Build a VBA class and open instances.[/li] [/ol]
I tried method B some time ago:
[tab]... but updates to recordsets would get assigned to the wrong item when switching between the two instances (I use the term loosely, I know it's not a class instance/instantiation) of the database. Variables would get crossed up.
At that time I learned method C is the elegant way to go. Now I think I am ready to attack it. However, revisiting methods A and B, I can't replicate the issue that made me abandon them before.
So my question is, are methods A and B really bad, and is C required? And any ideas how I could replicate the crossed-variable problem? And is there any other general advice?
I know of three methods that could be viable:
[ol A][li]Open DB, then use Access Open dialog to open it again.[/li]
[li]Open using VBA Shell.[/li]
[li]Build a VBA class and open instances.[/li] [/ol]
I tried method B some time ago:
Code:
Private Sub buttonLaunchAnother_Click()
Dim q As String: q = """"
Shell "MSAcc[s][/s]ess.exe " & q & "C:\MyDatab[s][/s]ase.mdb" & q, vbNormalFocus
End Sub
At that time I learned method C is the elegant way to go. Now I think I am ready to attack it. However, revisiting methods A and B, I can't replicate the issue that made me abandon them before.
So my question is, are methods A and B really bad, and is C required? And any ideas how I could replicate the crossed-variable problem? And is there any other general advice?
[purple]If we knew what it was we were doing, it would not be called
[blue]research[/blue] database[white].[/white]development, would it? [tab]-- Albert Einstein[/purple]
[blue]