Hi,
I got several queries which all can apply to the same field, I was testing with this:
But it's not exactly what it should be.
I want the fieldvalue filled with the calculated value from the query.
How do I do that ?
AND !
How to set it that depending on the Me.VerzId value a different query is read and thus filling the field Me.Provisie with a different value from different Query
I got several queries which all can apply to the same field, I was testing with this:
Code:
Private Sub Provisie_BeforeUpdate(Cancel As Integer)
Dim Fee As Integer
If Me.VerzId = 1 Then
DoCmd.OpenQuery "ProvBerekGelders"
Me.Provisie = Fee
End If
End Sub
But it's not exactly what it should be.
I want the fieldvalue filled with the calculated value from the query.
How do I do that ?
AND !
How to set it that depending on the Me.VerzId value a different query is read and thus filling the field Me.Provisie with a different value from different Query