Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Kombinacija tipki na text polju

[es] :: Access :: Kombinacija tipki na text polju

[ Pregleda: 1594 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Miro35
Miroslav Čondrić
BiH

Član broj: 63672
Poruke: 122
*.tel.net.ba.

Sajt: Tel.net.ba


+3 Profil

icon Kombinacija tipki na text polju14.04.2010. u 08:43 - pre 170 meseci
Imam ovaj code na KeyPrewiewDown text polja,znači kad se nalazim na tom polju stisnem kombinaciju tipki Ctrl E,otvaram drugu formu za unos podataka i to radi.Ali na tom polju ne mogu ukucati slovo E, kad hoću da upišem to slovo ništa se ne desi.Evo code:
Select Case KeyCode
Case vbKeyF1:
Select Case Shift
Case acShiftMask: MsgBox "F1 + Shift", vbInformation, "Pritisnut taster"
Case acCtrlMask: MsgBox "F1 + Ctrl", vbInformation, "Pritisnut taster"
Case acAltMask: MsgBox "F1 + Alt", vbInformation, "Pritisnut taster"
End Select
KeyCode = 0

Case vbKeyE
Select Case Shift
Case acCtrlMask:
DoCmd.OpenForm "frmOpisNalog"

End Select
KeyCode = 0

End Select
miro
 
Odgovor na temu

SLOJ.1973

Član broj: 130198
Poruke: 871
*.dynamic.isp.telekom.rs.



+41 Profil

icon Re: Kombinacija tipki na text polju14.04.2010. u 09:52 - pre 170 meseci
Evo ovako:
Code:
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyF1:
Select Case Shift
Case acShiftMask: MsgBox "F1 + Shift", vbInformation, "Pritisnut taster"
Case acCtrlMask: MsgBox "F1 + Ctrl", vbInformation, "Pritisnut taster"
Case acAltMask: MsgBox "F1 + Alt", vbInformation, "Pritisnut taster"
End Select
KeyCode = 0

Case vbKeyE
Select Case Shift
Case acCtrlMask:
DoCmd.OpenForm "frmOpisNalog"

Case Else
exit sub
End Select
KeyCode = 0

End Select
End Sub

Jednog dana...
 
Odgovor na temu

Miro35
Miroslav Čondrić
BiH

Član broj: 63672
Poruke: 122
*.tel.net.ba.

Sajt: Tel.net.ba


+3 Profil

icon Re: Kombinacija tipki na text polju14.04.2010. u 12:14 - pre 170 meseci
To je to.
Hvala
miro
 
Odgovor na temu

[es] :: Access :: Kombinacija tipki na text polju

[ Pregleda: 1594 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.