Private Function load_values(yearToLoad As String) As Double()
Dim qdf As QueryDef
Dim rs As Recordset
Dim result(4) As Double
Set conndb = CurrentDb
Set qdf = conndb.QueryDefs!q_frm_AdjustPrice_Load
If (yearToLoad = "") Then
qdf.Parameters![param_Year] = c_year.Value
Else
qdf.Parameters![param_Year] = yearToLoad
End If
qdf.Parameters![param_supplierID] = c_supplierlist.Value
Set rs = qdf.OpenRecordset
|