Advertisement

03.07.2008 at 01:54AM PST, ID: 23222400
[x]
Attachment Details

How do I pass Mulitple Parameters to a Microsoft Access Subroutine?

Asked by edwardokane in Microsoft Access Database

Hi,

I have a VBA Subroutine in Microsoft Access.  I am trying to pass two variables to the subroutine but keep getting errors.

This is how I have set up the sub:

Sub ExportAll_Weekly_ToExcel(Employee_Type As String, FName As String)

This is how I am trying to pass the values into the sub

ExportAll_Weekly_ToExcel ("qry_Weekly_Report_Account_Mgr_Append","AM")

When doing this I get the error "Compile error: Expected:=".  Not the sub works find with just one parameter "Employee_Type",  I only get problems when I try and add "FName"





Start Free Trial
[+][-]03.07.2008 at 02:11AM PST, ID: 21068703

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Sign Up Now!
Solution Provided By: oldmanbim
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628