Here's my entire module pasted exactly. Maybe I don't have my module declared as global if that's even possible?
Module:
Option Compare Database
Option Explicit
Public Function getQuantity(QueryName As String, storeCode As String, ItemCode As String, StartDate As Date, EndDate As Date, Field As String) As Double
Dim cmd As ADODB.Command
Dim rs As ADODB.Recordset
Set cmd = New ADODB.Command
Dim param1 As Parameter, param2 As Parameter, param3 As Parameter, param4 As Parameter
With cmd
Set .ActiveConnection = CurrentProject.Connection
.CommandText = QueryName
.CommandType = adCmdStoredProc
With .Parameters
Set param1 = cmd.CreateParameter("StoreCode", adVarChar, adParamInput, 3, storeCode)
.Append param1
Set param2 = cmd.CreateParameter("ItemCode", adVarChar, adParamInput, 10, ItemCode)
.Append param2
Set param3 = cmd.CreateParameter("StartDate", adDate, adParamInput, , StartDate)
.Append param3
Set param4 = cmd.CreateParameter("EndDate", adDate, adParamInput, , EndDate)
.Append param4
End With
Set rs = .Execute
End With
If rs.RecordCount > 0 Then
getQuantity = Val(rs(Field))
Else
getQuantity = 0
End If
rs.Close
End Function
Public Function getDaiqUsage(storeCode As String, ItemCode As String, StartDate As Date, EndDate As Date, BeginningStartDate As Date, BeginningEndDate As Date) As Double
Dim WasteQuantity As Double
Dim ReceiveQuantity As Double
Dim TransferQuantity As Double
Dim EndInvQuantity As Double
Dim StartInvQuantity As Double
WasteQuantity = getQuantity("A_WasteQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"

StartInvQuantity = getQuantity("A_DaiquiriQuantity", storeCode, ItemCode, BeginningStartDate, BeginningEndDate, "SumOfQuantity"

EndInvQuantity = getQuantity("A_DaiquiriQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"

ReceiveQuantity = getQuantity("A_ReceiveQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"

TransferQuantity = getQuantity("A_TransferQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"
getDaiqUsage = StartInvQuantity + ReceiveQuantity - WasteQuantity - TransferQuantity - EndInvQuantity
End Function
Public Function getUsage(storeCode As String, ItemCode As String, StartDate As Date, EndDate As Date, BeginningStartDate As Date, BeginningEndDate As Date) As Double
Dim WasteQuantity As Double
Dim ReceiveQuantity As Double
Dim TransferQuantity As Double
Dim EndInvQuantity As Double
Dim StartInvQuantity As Double
WasteQuantity = getQuantity("A_WasteQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"

StartInvQuantity = getQuantity("A_InventoryQuantity", storeCode, ItemCode, BeginningStartDate, BeginningEndDate, "SumOfQuantity"

EndInvQuantity = getQuantity("A_InventoryQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"

ReceiveQuantity = getQuantity("A_ReceiveQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"

TransferQuantity = getQuantity("A_TransferQuantity", storeCode, ItemCode, StartDate, EndDate, "SumOfQuantity"
getUsage = StartInvQuantity + ReceiveQuantity - WasteQuantity - TransferQuantity - EndInvQuantity
End Function