[FORM] Formda alan sadece sayı değeri kabul etsin
#1
Form üzerinde alanlarım var alanlarımın biri sayı değeri olarak ayarlanmış. Metin girince hata veriyor. Ben hata vermeden uyarı mesajı vermesini istiyorum. "Bu alan sadece sayı girişi içindir" gibi. Teşekkürler



  Alıntı
Bu mesajı beğenenler:
#2
(05-03-2014, 23:27)yahyamacit demiş ki: "Bu alan sadece sayı girişi içindir"

1.Uyari: Form uzerinde ki hangi alanlarda uyari verdirmek istiyorsaniz
vb is not a supported langage
List of available langages :
php, smarty, cuesheet, div, q, mapbasic, gambas, cfdg, netrexx, css, freeswitch, z80, java5, sparql, falcon, asymptote, dot, mxml, plsql, fsharp, dcpu16, vala, basic4gl, qbasic, clojure, oobas, powershell, rails, diff, pli, freebasic, sas, stonescript, scheme, latex, f1, pascal, 6502kickass, bnf, llvm, klonecpp, povray, applescript, python, coffeescript, progress, html4strict, postgresql, lua, newlisp, lisp, unicon, cadlisp, asm, vba, oxygene, modula2, urbi, go, gnuplot, m68k, vbnet, euphoria, spark, xorg_conf, properties, lolcode, oberon2, xbasic, avisynth, yaml, vhdl, cpp, logtalk, powerbuilder, gml, perl, icon, sdlbasic, fo, ocaml-brief, mmix, providex, pic16, klonec, abap, gwbasic, nagios, pike, genero, purebasic, zxbasic, haxe, lotusformulas, awk, visualfoxpro, cobol, pcre, ocaml, apt_sources, chaiscript, autoconf, j, intercal, 68000devpac, xml, asp, lotusscript, bascomavr, genie, tcl, prolog, upc, rebol, octave, nsis, groovy, cil, mirc, smalltalk, oracle11, pycon, mpasm, dos, rsplus, c, locobasic, ini, bash, d, javascript, vedit, magiksf, thinbasic, lb, parasail, proftpd, whitespace, oz, whois, teraterm, 4cs, actionscript, csharp, apache, make, objc, boo, fortran, delphi, oorexx, idl, ecmascript, visualprolog, algol68, verilog, html5, caddcl, haskell, uscript, blitzbasic, rpmspec, java, rexx, scilab, bibtex, ldif, inno, c_loadrunner, hq9plus, perl6, erlang, gdb, kixtart, vim, oracle8, reg, dcs, typoscript, per, hicest, objeck, eiffel, mysql, actionscript3, parigp, pys60, 6502acme, lscript, epc, gettext, scala, tsql, lsl2, matlab, autoit, pf, xpp, robots, ruby, cmake, ada, systemverilog, winbatch, c_mac, jquery, text, e, io, php-brief, pixelbender, modula3, glsl, autohotkey, email, cfm, bf, sql, 6502tasm, arm, dcl, cpp-qt
yazmalisiniz.
vb is not a supported langage
List of available langages :
php, smarty, cuesheet, div, q, mapbasic, gambas, cfdg, netrexx, css, freeswitch, z80, java5, sparql, falcon, asymptote, dot, mxml, plsql, fsharp, dcpu16, vala, basic4gl, qbasic, clojure, oobas, powershell, rails, diff, pli, freebasic, sas, stonescript, scheme, latex, f1, pascal, 6502kickass, bnf, llvm, klonecpp, povray, applescript, python, coffeescript, progress, html4strict, postgresql, lua, newlisp, lisp, unicon, cadlisp, asm, vba, oxygene, modula2, urbi, go, gnuplot, m68k, vbnet, euphoria, spark, xorg_conf, properties, lolcode, oberon2, xbasic, avisynth, yaml, vhdl, cpp, logtalk, powerbuilder, gml, perl, icon, sdlbasic, fo, ocaml-brief, mmix, providex, pic16, klonec, abap, gwbasic, nagios, pike, genero, purebasic, zxbasic, haxe, lotusformulas, awk, visualfoxpro, cobol, pcre, ocaml, apt_sources, chaiscript, autoconf, j, intercal, 68000devpac, xml, asp, lotusscript, bascomavr, genie, tcl, prolog, upc, rebol, octave, nsis, groovy, cil, mirc, smalltalk, oracle11, pycon, mpasm, dos, rsplus, c, locobasic, ini, bash, d, javascript, vedit, magiksf, thinbasic, lb, parasail, proftpd, whitespace, oz, whois, teraterm, 4cs, actionscript, csharp, apache, make, objc, boo, fortran, delphi, oorexx, idl, ecmascript, visualprolog, algol68, verilog, html5, caddcl, haskell, uscript, blitzbasic, rpmspec, java, rexx, scilab, bibtex, ldif, inno, c_loadrunner, hq9plus, perl6, erlang, gdb, kixtart, vim, oracle8, reg, dcs, typoscript, per, hicest, objeck, eiffel, mysql, actionscript3, parigp, pys60, 6502acme, lscript, epc, gettext, scala, tsql, lsl2, matlab, autoit, pf, xpp, robots, ruby, cmake, ada, systemverilog, winbatch, c_mac, jquery, text, e, io, php-brief, pixelbender, modula3, glsl, autohotkey, email, cfm, bf, sql, 6502tasm, arm, dcl, cpp-qt

2.Uyari: Diğer(Other) Kontrol İpucu(ControlTipText)
"Bu alan sadece sayı girişi içindir" yazilir ise fare ile alan ustune geldiginizde uyari yazisi cikacaktir.



  Alıntı
Bu mesajı beğenenler:
#3
Yanlış mı anlattım ben mi beceremedim bilemedim. Metin kutusuna sayı hariç karakter girdiğimde beni uyaracak bu alana sadece sayı değeri girilecek diyecek.



  Alıntı
Bu mesajı beğenenler:
#4
aynen dediğiniz gibi bir cevap almışsınız
Teşekküre gerek yok, Taş atın yeter!!!



  Alıntı
Bu mesajı beğenenler:
#5
Sayin yahyamacit;

Ilk mesajiniz :
(05-03-2014, 23:27)yahyamacit demiş ki: "Metin girince hata veriyor. Ben hata vermeden uyarı mesajı vermesini istiyorum."
Ilgili alana odaklama ile kullanicinin uyarilmasi olabilir mi? diye dusunmustum.

Alana karakter yazilmasi sonrasi uyariyi asagidaki gibi yaptirilabilir.
Private Sub ds_KeyPress(KeyAscii As Integer)
If Eval(KeyAscii & " Not In(8,13)") Then
If Eval(KeyAscii & " Not Between 48 And 57") Then KeyAscii = 8: MsgBox " bu alana sadece sayı değeri girilecek -" & KeyAscii & "-"
End If
End Sub

Kolay gelsin.....



  Alıntı
Bu mesajı beğenenler:


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  öğrenci Takip (sadece Tablo) accessbonkörü 1 245 05-01-2026, 20:40
Son Mesaj: dsezgin
  Parametre Değeri Gir Uyarısı hegu 3 375 23-05-2025, 14:55
Son Mesaj: hegu
  [SORGU] iki sayı arasında nasıl sorgu yapılır? 26092009 3 7.657 15-12-2024, 08:42
Son Mesaj: halil.tefci
  [FORM] Sadece Alt Formun Kaydedilmesi TheREDROSE 1 277 22-08-2024, 03:00
Son Mesaj: dsezgin
  Sorgu Içerisinde Boş Alan Varsa 0 (sıfır) Ile Doldurmak denizfatihi 3 515 15-08-2024, 14:38
Son Mesaj: beab05
  [SORGU] çarpraz Sorguda Sütun Değeri Olarak Birden çok Alan Seçebilir Miyiz? abkbek 2 410 13-08-2024, 21:18
Son Mesaj: abkbek
  [FORM] Metin Kutusundaki Değeri Başka Bir Metin Kutusuna Aktarmak TheREDROSE 2 422 02-08-2024, 11:56
Son Mesaj: TheREDROSE
access-sql-18 [RAPOR] Kayıt Içerisindeki Miktar Alanındaki Sayı Kadar Rapora Ilgili Kaydı Rapora Kopyalama gurolk 12 936 29-07-2024, 12:01
Son Mesaj: dsezgin

Foruma Git:


Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi