Results 1 to 4 of 4
  1. #1
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496

    getting there from here

    Can code be written so that, when the user opens a particular *.mdb, a second (unlinked) *.mdb is then alos opened, some lines of code in that second *.mdb are ran, and then the original *.mdb, that the user first opened, is closed (while leaving the second acvtive?)



    any thoughts, directions, <etc> will be greatly appreciated
    thnx
    mark

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    1 setup STARTUP form (e.g. form1) in the particular .mdb;
    2 in the form_load event of form1, open the second .mdb;
    3 setup STARTUP form (e.g. form2) in the second .mdb;
    4 in the form_load event of the form2 of second mdb, close the first mdb;

  3. #3
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496
    is there a way to pass to the second the file name of the first, so that it knows what file (it could be 1 of many) that is ought to close?

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    the better way is:
    in the first mdb, after opening the second mdb, close itself.

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums