Quote:
Originally posted by Philem
Hullo. This should not be too difficult. Create a macro in said database to display the form in question. Then, in Excel, modify the code that launches your Access instance. Put this: databasename.mdb /X MacroName at the END of that line, (just after Access.EXE). This will launch the database you name, and run the macro called for.
HTH 
P
|
Thanks for your reponse, first of all I have created a button on excel but I am not able to open the acess database for some reason. I have placed the database in C:\testing.mdb, the code that I have to open the database by clicking the button in excel is as follows and doesn't seem to be working? can u please help. thanks
Private Sub Button351_Click()
On Error GoTo Err_Button351_Click
Dim stAppName As String
stAppName = "Access.mdb c:\jaim.mdb"
Call Shell(stAppName, 1)
Exit_Button351_Click:
Exit Sub
Err_Button351_Click:
MsgBox Err.Description
Resume Exit_Button351_Click
End Sub
This appears in excel to open the jaim.mdb database. it cliams file not found. can u provide a i.e if not much trouble. Thanks.