I have a function that takes an Int returns an Int after calculation
Public Function OutputDelivered(ProjectID As Integer) As Integer
On a form I have 3 controls : R1,[Proposal Traking Number] and the last one [Output_Delivered]
In R1_AfterUpdate event , i try to call the function
code:
Private Sub R1_AfterUpdate()
Me.Refresh
Me.Output_Delivered = OutputDelivered(Me.[Proposal Tracking Number])
End Sub
the form is NOT read-only, controls are editable, BUT
i've got this error message :
"Run-time error '2448' : You can't assign a value to this object"
if I call like this no error message:
Me.Output_Delivered = OutputDelivered(123)
any suggestion would be much appreciated
thx,
c.
Public Function OutputDelivered(ProjectID As Integer) As Integer
On a form I have 3 controls : R1,[Proposal Traking Number] and the last one [Output_Delivered]
In R1_AfterUpdate event , i try to call the function
code:
Private Sub R1_AfterUpdate()
Me.Refresh
Me.Output_Delivered = OutputDelivered(Me.[Proposal Tracking Number])
End Sub
the form is NOT read-only, controls are editable, BUT
i've got this error message :
"Run-time error '2448' : You can't assign a value to this object"
if I call like this no error message:
Me.Output_Delivered = OutputDelivered(123)
any suggestion would be much appreciated
thx,
c.