G 
		
								
				
				
			
		Guest
I use the following statement several times in my code:
'open the master database
Set accessapp = CreateObject("Access.Application")
accessapp.OpenCurrentDatabase ISSUEMASTER
Can I move these to a public sub:
Public Sub OPEN_ISSUETRACK()
'open the master database
Set accessapp = CreateObject("Access.Application")
accessapp.OpenCurrentDatabase ISSUEMASTER
End Sub
and then reference from another sub like this?
Call OPEN_ISSUETRACK
accessapp.run "export_rpts"
Or will the accessapp close at the end of the first sub?
				
			'open the master database
Set accessapp = CreateObject("Access.Application")
accessapp.OpenCurrentDatabase ISSUEMASTER
Can I move these to a public sub:
Public Sub OPEN_ISSUETRACK()
'open the master database
Set accessapp = CreateObject("Access.Application")
accessapp.OpenCurrentDatabase ISSUEMASTER
End Sub
and then reference from another sub like this?
Call OPEN_ISSUETRACK
accessapp.run "export_rpts"
Or will the accessapp close at the end of the first sub?
