OK I think Im officially going insane. Something that should be rather simple is turning out to be a nightmare. This is the whole situation. I have a survey created in access. a simple .MDB the client wishes the survey to be automaticly launched everytime a user clicks on the shortcut(s) in the start menu for three programs:Internet Explorer, MS Word, and Corel WordPerfect.
the order should be as follows: when a user clicks on the shortcut, the program should open, a brief pause (2 seconds) and then the survey should pop up over top of the program, leaving the other program maximized so when the survey is closed the program is in view of the user.
this is what I've attempted:
attempt one: VB
I created an EXE written in VB that used the shellexec code to launch the programs in the order I wanted. it was like 6 lines of code. the code would launch the programs and then preform an illegal operation and shut down. under details of the error just said "invalid page fault in module <unknown>"
attempt two: Access
so I decided to dump the whole exe concept and just attempt to use access and the shell command to launch the desired program. I used the /cmd in the shortcut target to launch access, go to my survey.mdb and pass the path of the desired program. upon loading of the first form of the survey I used the shell(command()),vbnormalnofocus to lauch the desired program. it launched the program but the program took focus anyways and left the survey in the background. this is not acceptable to the client.
Attempt three: aceess Launcher program
So I created a second mdb called launcher.mdb this MDB was again passed the path of the desired program via the /cmd command in the target of the shortcut which inturn ran the MDB, used the shell(command()),vbmaximize to launch the desired program then the shell("c:\survey.mdb"

. This mdb would launch the program correctly then stated that it could not find the survey.mdb (the path was verified to be correct).
I am completely out of ideas now. would anybody have any ideas? Please let me know, thanks.