By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,592 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,592 IT Pros & Developers. It's quick & easy.

Collecting information from Access Applications for Word

P: n/a
With multiple access applications running how do you reference a
particular field on a particular form in a particular application from
a Word Document.

The code below retrieves the information I want when only one access
application is running but I need to collect the information from
database : Schedule.mdb
form : frmDataentry
field : txtAppid
when multiple applications are running.

Sub getAppid()
Dim objAccess As Access.Application
Dim frmany As Access.Form
Dim docname As String

On Error GoTo Err_getAppid

Set objAccess = Access.Application
Set frmany = objAccess.Screen.ActiveForm

docname = frmany!txtAppid
MsgBox "The APP ID is " & docname

Exit_getAppid:
Exit Sub

Err_getAppid:
MsgBox Err.Description
Resume Exit_getAppid
End Sub
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.