How to call a function from another function
I have a function called Summary, which in its simplest form opens a report.
what i want is to build another function, defining the Criteria,
and call this function from the funcion summary
——————————-
Public Function summary()
DoCmd.OpenReport “R1”, acPreview, , StrCriteria
End Function
——————————————–
Public Function sizing(Gebinde)
Dim StrCriteria As String
If Gebinde = 1 Then
srtCriteria = StrDrums
End If
End Function
———————————————–
Gebinde is a control on a form, and strDrums is a constant