Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Window confusion
#1
I'm having a problem pulling up a specific access db when there are other dbs open. is there a way when i open a particular db to give that window a unique identifyer so that i can pull it up?

i tried using the handle and global a variable but if there are other dbs already open it pulls them up first and grabs their handle rather than the one that is open. i tried useing 0x200 on the run command but it didnt help.

any way to do this?

tx
#2
what about changing the window text ?
pi
#3
i can't do it quick enough after the run command to keep it from bringing up another open Access db and renaming that one.

can do it in a run command?
#4
btw. is your program access ??
pi
#5
yes, it is.

FYI:the window tittle does give the db name (which is unique) but only if the db is maximised within the Access main window.
#6
have you tried catching your db with the 'Find accessible object' function ?'
pi
#7
I don't know how to use it. can you help with that?
#8
make a new macro, paste:

<font color=#0080f0>EA_Main </font>_hwndqm


and run the macro.

:roll:
pi
#9
WOW that gets a lot of info....
so here's what i did...
Code:
Copy      Help
Acc a=acc("" "TITLEBAR" "Microsoft Access" "ODb" "db1 : Database (Access 2000 file format)" 0x1004)
act a

however it won't bring the window up; does "act" even work like I'm using it?
#10
In QM 2.1.4, run can wait for window and get handle. Use the "Run program" dialog. Specify window, and set option "Run anyway".

However, there is theoretic possibility that run can retrieve wrong window, and I don't know any reliable solution for this.
#11
Yeah, I tried that 0x800 but it didn't work (i.e. it pulled up the other Access window).

Does anyone know a command line thing that would maximize the windows within Access?
#12
what happens when you try to load the db again ?
maybe access will switch to that db ?

i tried it with dreamweaver and photoshop, it works :roll:
pi
#13
it pulls up the othe db. run was what i was using before with some of the options but it was seeing the other db as the prog and pulled it up.


Forum Jump:


Users browsing this thread: 1 Guest(s)