Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 24th, 2011, 09:17 AM
Authorized User
 
Join Date: Feb 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call Sub from another access file

I have 3 access files and each one will run a process and refresh an excel spreadsheet. Currently I run each process within the access files seperately and I would like to create a 4th access database that has a single form with a checkbox for each report that needs to be updated. I don't want each of the access files to open, just run the sub routine (cmdRun_Click) for each report that I have selected.

(from the new access form)
Private Sub cmdRun_Click()

DoCmd.SetWarnings False

If Me.chk_dfg_app_rpt.Value = -1 Then
'find app report access file and run cmdRun_Click
End If

If Me.chk_dfg_book_rpt.Value = -1 Then
'find book report access file and run cmdRun_Click
End If

If Me.chk_dfg_except_rpt.Value = -1 Then
'find except report access file and run cmdRun_Click
End If

DoCmd.SetWarnings True

End Sub






Similar Threads
Thread Thread Starter Forum Replies Last Post
Call JS from CS file AmitGuptaIT Javascript 4 June 15th, 2009 02:17 AM
call .jrxml file ie jasper report file from jsp surya_anand00 Pro JSP 0 February 21st, 2009 03:54 AM
How do I call Excel script from Access? vmerc Access VBA 8 August 16th, 2005 01:28 PM
Call access modules from the web liquidmillsap Access 2 December 28th, 2004 03:05 PM
How do i call a .vbs file from within a webform? flyin General .NET 0 May 3rd, 2004 08:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.