I am trying to assign data from a'Public' variable to a text box in one of my reports.
Following a sugestion in the general forum I have created a Funcion in a module ie :-
Public Function GetCartons() As Integer
GetCartons = VarCartons
End Function
(Where 'VarCartons is my 'Public' variable). Then in my report all I do is put =[GetCartons] in the data source.
But the data is not populated in the function when I check it with a breakpoint - all the data is assigned to the correct varaibles, and VarCartons holds the right data outside of the function, but inside the function there is no data ...
Can anyone point me in the right direction ????
Following a sugestion in the general forum I have created a Funcion in a module ie :-
Public Function GetCartons() As Integer
GetCartons = VarCartons
End Function
(Where 'VarCartons is my 'Public' variable). Then in my report all I do is put =[GetCartons] in the data source.
But the data is not populated in the function when I check it with a breakpoint - all the data is assigned to the correct varaibles, and VarCartons holds the right data outside of the function, but inside the function there is no data ...
Can anyone point me in the right direction ????