opening word in access

R

Ron

Hi

On my access form I have buttons that open wordfiles
these files are connected to queries in access, when I click the buttons
the word files automatically open and the fields are filled with data. Till
sofar all fine
I renamed the database
the problem is that one specific wordfile is giving an error, the other
files are oke
I reconnected the file to the database
When I click the button the database connects to that wordfile end the
wordfile wants to connect to the database which creates an error message
such as "the database is locked".

The button vb for the button is
Private Sub antisprout_Click()
On Error GoTo Err_antisprout_Click
Dim stAppName As String
stAppName = "winword.exe c:\database\wordacces\antisprout.doc"
Call Shell(stAppName, 1)
Exit_antisprout_Click:
Exit Sub
Err_antisprout_Click:
MsgBox Err.description
Resume Exit_antisprout_Click

End Sub

How do I open the wordfile to see the programming for connecting the
database??


thanks for your help
Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top