2

Working with MS Access 2016. I have a form with multiple textboxes. I want one of my textboxes (tbx_outTSDatum_BQC) to be automatically filled -if entered and empty- with the value of another textbox (tbx_inTSDatum_BQC). This code does nothing:

Private Sub tbx_outTSDatum_BQC_Enter()
    If Me.tbx_outTSDatum_BQC.Value = Empty Then Me.tbx_outTSDatum_BQC.Value = Me.tbx_inTSDatum_BQC.Value
End Sub

Changing the event from Enter() to GotFocus() does not help. How can I get this working? Thank you.

braX
  • 11,506
  • 5
  • 20
  • 33
Jens Wilken
  • 31
  • 1
  • 6

1 Answers1

2

It is Null to check for:

If IsNull(Me!tbx_outTSDatum_BQC.Value) Then 
    Me!tbx_outTSDatum_BQC.Value = Me!tbx_inTSDatum_BQC.Value
End If
Gustav
  • 53,498
  • 7
  • 29
  • 55