Hello,
I would like to know how to create a button in form to open the windows calculator. I have MS Access 2003, and running Window XP.
Thank you
Adam
Hello,
I would like to know how to create a button in form to open the windows calculator. I have MS Access 2003, and running Window XP.
Thank you
Adam
I am running on a WIN7 machine. You may have to change the path for wherever your calculator is located.
Put this in the on click event for a command button
edit: Jack types quicker than me.Code:Private Sub Command0_Click() Dim RetVal RetVal = Shell("C:\windows\system32\calc.exe", 1) End Sub![]()
Thank you.
I am running on a WIN7 machine. You may have to change the path for wherever your calculator is located.
Put this in the on click event for a command button
edit: Jack types quicker than me.Code:Private Sub Command0_Click() Dim RetVal RetVal = Shell("C:\windows\system32\calc.exe", 1) End Sub
I used the code below for a button on a form to open Window calculator, but it did not work in my Window XP Access 2003, but the same code worked in my Window 7 Access 2010. What am I doing wrong. I checked the path of the calculator in the XP and it is C:\windows\system32\calc.exe
Private Sub Command0_Click()Dim RetValRetVal = Shell("C:\windows\system32\calc.exe", 1)End Sub
The code works in Access 2007 under Windows XP Version 5.1 SP3.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.