AccessTr.neT
Otomatik Setfocus - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: Otomatik Setfocus (/konu-otomatik-setfocus.html)



Otomatik Setfocus - notrino - 27/11/2018

Merhaba,
Ekli örneğimde "a" metin kutusuna 3 adet rakam girince imlecin otomatik olarak "b" metin kutusuna setfocus olmasını istiyorum. Görüleceği üzere a'nın "değiştiğinde olayı"na bir şeyler karaladım ama çalıştıramadım. Sadece değiştiğinde olayına değil, after update, dirty, form geçerliliği vs. hepsinde denedim olmadı. Nedendir ? Tşk.


Cvp: Otomatik Setfocus - ozanakkaya - 27/11/2018

Değiştiğinde olayına 

if len(metin) =3 then

şeklinde kod denenebilir.


Cvp: Otomatik Setfocus - notrino - 28/11/2018

(27/11/2018, 23:44)ozanakkaya yazdı: Değiştiğinde olayına 

if len(metin) =3 then

şeklinde kod denenebilir.

Denedim. Olmuyor..


Cvp: Otomatik Setfocus - ozanakkaya - 28/11/2018

Örnek uygulamanızdaki denetimlere göre;

If Len(Me.a.Text) = 3 Then
Me.b.SetFocus
End If



Cvp: Otomatik Setfocus - notrino - 28/11/2018

(28/11/2018, 11:45)ozanakkaya yazdı: Örnek uygulamanızdaki denetimlere göre;

If Len(Me.a.Text) = 3 Then
Me.b.SetFocus
End If

Şimdi oldu. "Text" ifadesi eksikmiş bende.