F
Francis
Field IDBancos (combobox: cmbIDBancos) after having a value and thus
changed, is writen also in another field lancamento (textbox:
txtlancamento) a value of the increment as it would be an autonumber,
as following:
Private Sub cmbIDBancos_AfterUpdate()
If (Not IsNull(Me.cmbIDBancos)) Then
If IsNull(Me.txtlancamento.Value) Then
Me.txtlancamento.Value = DMax("[lancamento]",
"GestaoTesouraria_Table", "[IDBancos] = Me!cmbIDBancos.Value") + 1
End If
End If
End Sub
Both fields are in GestaoTesouraria_Table.
What is not working in here? and why doesn't txtlancamento updates with
an incremented integer after cmbIDBancos gets a value.
Thanks in advance.
Francis
(Portugal)
changed, is writen also in another field lancamento (textbox:
txtlancamento) a value of the increment as it would be an autonumber,
as following:
Private Sub cmbIDBancos_AfterUpdate()
If (Not IsNull(Me.cmbIDBancos)) Then
If IsNull(Me.txtlancamento.Value) Then
Me.txtlancamento.Value = DMax("[lancamento]",
"GestaoTesouraria_Table", "[IDBancos] = Me!cmbIDBancos.Value") + 1
End If
End If
End Sub
Both fields are in GestaoTesouraria_Table.
What is not working in here? and why doesn't txtlancamento updates with
an incremented integer after cmbIDBancos gets a value.
Thanks in advance.
Francis
(Portugal)
and works