13-05-2022, 08:24
Arkadaşlar merhabaformumdaki adı soyadı boş geçilmesin diye
Private Sub Komut51_Click()
On Error Resume Next
If IsNull(Me.ADI) And IsNull(Me.SOYADI) And IsNull(Me.NOT) And IsNull(Me.ADRESİ) And IsNull(Me.[TELEFON NO SABİT]) And IsNull(Me.[TELEFON NO MOBİL]) Then
DoCmd.Close acForm, "MUSTERIG"
ElseIf IsNull(Me.ADI) Then
Me.ADI.SetFocus
DoCmd.OpenForm "BOS", acNormal
ElseIf IsNull(Me.SOYADI) Then
Me.SOYADI.SetFocus
DoCmd.OpenForm "BOS", acNormal
Else:
DoCmd.Close acForm, "MUSTERIG"
End If
End Sub
şeklinde bir kod yazdım ve çalışıyor fakat herhangi bir alanda boşluk tuşuna basıldığında kayıt ekleniyor ve adı soyadı boş geçiliyor ben boş geçilmesin istiyorum.
Yardımcı olabilirseniz sevinirim.
Private Sub Komut51_Click()
On Error Resume Next
If IsNull(Me.ADI) And IsNull(Me.SOYADI) And IsNull(Me.NOT) And IsNull(Me.ADRESİ) And IsNull(Me.[TELEFON NO SABİT]) And IsNull(Me.[TELEFON NO MOBİL]) Then
DoCmd.Close acForm, "MUSTERIG"
ElseIf IsNull(Me.ADI) Then
Me.ADI.SetFocus
DoCmd.OpenForm "BOS", acNormal
ElseIf IsNull(Me.SOYADI) Then
Me.SOYADI.SetFocus
DoCmd.OpenForm "BOS", acNormal
Else:
DoCmd.Close acForm, "MUSTERIG"
End If
End Sub
şeklinde bir kod yazdım ve çalışıyor fakat herhangi bir alanda boşluk tuşuna basıldığında kayıt ekleniyor ve adı soyadı boş geçiliyor ben boş geçilmesin istiyorum.
Yardımcı olabilirseniz sevinirim.

