Question : Access 2007 and sendkeys

I have a application that has went through several access versions from 97 to 2007. We wrote a custom menu mde that calls other mde files using the Sendkeys stmt. The SendKeys has worked great until access 2007 runing on windows 7. SendKeys works using access 2007 and XP.

But when you try in a windows 7 computer SendKeys does not build the path correctly. After some research I found that SendKeys does not function well in Access 2007.

I still need to use the custom menu program to call the other mde files. What code can I use to replace the SendKeys code to call the other mde. And this needs to be backward complatable to run in Access 2003. I attached the code snippet for the SendKeys.

Thanks for any help I can get.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
On Error GoTo Err_OpenBtn_Click


        CurrentDb.Execute "CPSetActiveSiteToFalse"
        
        CurrentDb.Execute "UPDATE CPSUtilitiesTbl SET CPSUtilitiesTbl.Active = TRUE " & _
        "WHERE (((CPSUtilitiesTbl.SiteNum)='" & [SiteNum] & "'))"
        
        Call ShowAccess(True, "")

        Call getThisDir
        DoEvents
        SendKeys "^(o)"
        SendKeys ThisDir & "CarlPerkins\PCPsiteY10.mde"
        SendKeys "{Enter}"

Answer : Access 2007 and sendkeys

I think you said you were using coldfusion.  Dreamweaver has automated scripts for logging in and userauthentication but their way is expecting a database.

There is a nice tutorial for cfm here http://tutorial8.easycfm.com

Random Solutions  
 
programming4us programming4us