In Access 2000, I have created the following function:
Function ComparePrices(AgencyID As Integer, _
ImportOrganisationId As Integer, _
CifOrFob As String)
I want to call the function using the result of a recordset like this:
ComparePrices 1,2,[rstCosting]![CostingType]
When I compile the code I get the error "Argument not optional".
What am I doing wrong?
Function ComparePrices(AgencyID As Integer, _
ImportOrganisationId As Integer, _
CifOrFob As String)
I want to call the function using the result of a recordset like this:
ComparePrices 1,2,[rstCosting]![CostingType]
When I compile the code I get the error "Argument not optional".
What am I doing wrong?