byfandex Posted June 19, 2012 Share Posted June 19, 2012 Selamlar ustalar. Birkez daha sizlere işim düştü. Çalıştığım spor salonu için başladğığm otomasyonu bitiremiyorum. Sitede daha önceden yayınlanan "Rehber+Resim göster" adlı projeyi biraz değiştirip yapmak istemiştim fakat sonuç malesef başarısızlık. Linki ekliyorum bir bakarsanız mutlu olurum. [code]http://www.mediafire.com/?vg1892an549015w[/code] Quote Link to comment Share on other sites More sharing options...
HalilYanar Posted June 19, 2012 Share Posted June 19, 2012 Aslında o projeyi bende inceledim kodlar normal kontrolde ettim neresinde takıldın ki ? Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 19, 2012 Author Share Posted June 19, 2012 (edited) Şu anda eni kişi ekleyemiyorum [b][img]http://www.tnctr.com/uploads/imgs/pre_1340139619__adsz.png[/img] [/b] Edited June 19, 2012 by byfandex Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted June 20, 2012 Share Posted June 20, 2012 Türkçe karakter sorunu olabilirmi?? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 20, 2012 Editor Share Posted June 20, 2012 Hiç açıklamayı düşündünüzmü ne yazıyor acaba . 10 kolon var sen 21 tane değer girmeye çalışıyorsun vatandaş diyor.Kolon sayını 21 e çoğalt Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 20, 2012 Author Share Posted June 20, 2012 nasıl Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 20, 2012 Editor Share Posted June 20, 2012 [code]SQLite.Query(db,"CREATE Table Info_List(RecordID integer primary key, tckimlik text, adi text, soyadi text, adresi text, evtel text, ceptel text, istel text, mail text)");[/code] Bu kod'a kayıt ekranındaki değerlerin hepsini ekle burada 9 tane kolon eklemişsin ama kayıt ederken 21 tane değer çekip hepsini database e yazdırmaya çalışıyorsun dolayısı ile olmayan bir kolona deger yazdıgın için hata veriyor.Birde bu şekilde Sqlite kullanacagına Navicat Premium kullan daha pratik ve hızlı yaparsın bu işi. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 20, 2012 Author Share Posted June 20, 2012 orda bir sıkıntı olmuş ben orayı tamamen değiştirmiştim fakat kaydetmeden çıktım sanırım eyvallah bir kontrol edeym Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 21, 2012 Editor Share Posted June 21, 2012 Sorunun başka bir nedeni yok sanırım. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 21, 2012 Author Share Posted June 21, 2012 ortalık akrıştı biraz benim değiştrdiim yer orası değilmiş ve o kodların yerini bulamadım :S nerdeki kodlar olduğunu söyleyebilirmisin rica etsem Quote Link to comment Share on other sites More sharing options...
pilgetir Posted June 21, 2012 Share Posted June 21, 2012 :S Eğer o resimdeki hatayı açılışta aldıysan ya on startupa koyacaksın ya on preloada yada on showa ha yok butona tıklayınca aldıysa o butonun ilgili evresine koyacaksın bu kadar bitti. Quote Link to comment Share on other sites More sharing options...
x-force Posted June 21, 2012 Share Posted June 21, 2012 Basit bir şey için Autoplay ile uğraşmana değmez. Access sihirbazı ile 2 dakika sürmez bunu yapman.. Zamanına yazık.. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 21, 2012 Editor Share Posted June 21, 2012 Access ile bu çok farklı dostum. @byfandex dostum Actions On startup kısmındaki kodları düzenleyeceksin. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 21, 2012 Author Share Posted June 21, 2012 eyvallah exel ile bile yapabilirdim ama bu kodlama işini biraz kavramama yardımcı olur diye düşünmüştüm ha bide "actions on startup" nerde Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 21, 2012 Editor Share Posted June 21, 2012 Project -> Actions Kısmından ulaşabilirsiniz. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 21, 2012 Author Share Posted June 21, 2012 (edited) [codebox]SQLite.Query(db, "CREATE Table Info_List(RecordID integer primary key, adi text, tckimlik text, doğum text, kan text, uye text, kupon text, evtel text, evad text, eposta text, ceptel text, meslek text, bmi text, kg text, yag text, kas text, iyag text, calori text, tansiyon text, hedef text)");[/codebox] yaptım ama sonuç aynı malesef Edited June 21, 2012 by byfandex Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 21, 2012 Share Posted June 21, 2012 kısaca bir gö attımda, tablon 10 kolon içeriyor ama sen 21 veri göndermişsin. ya tablondki kolonları çoğalt ya da verilerini azalt. Müsait bir zamanda tekrar bakarım. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 21, 2012 Author Share Posted June 21, 2012 vallah hocam bu benim lk projem desem yeridir (oda baka projeyi editleyerek ) şu an tıkandım bunu bitirmek birşeyleri kavramama yardımcı olacak kanısındayım yardım eden ve edecek herkese teşekkür ederim Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 21, 2012 Editor Share Posted June 21, 2012 Yarın hallederim eger müsait olabilirsem. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 21, 2012 Author Share Posted June 21, 2012 eyvallah Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted June 21, 2012 Share Posted June 21, 2012 Ben .db dosyasına baktım sadece 9 tane column var onu çoğaltması lazım bence navicattan Dosyada sadece bunlar var "RecordID" integer, "tckimlik" INTEGER, "adi" text, "soyadi" text, "adresi" text, "evtel" INTEGER, "ceptel" INTEGER, "istel" INTEGER, "sehir" TEXT, Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 22, 2012 Editor Share Posted June 22, 2012 Sorununu açıklıyorum.Tablodaki kolonların isimlerini yazmamışsın.Ama veri gönderiyorsun dolayısı ile hata veriyor. [color="#FF0000"][b]Çözüm :[/b][/color] SQLite.Query(db,"insert into Info_List[color="#FF0000"][b](sadi,stckimlik,sdogum)[/b][/color] values('"..sadi.."', '"..stckimlik.."', '"..sdogum.."')"); Kırmızı ile işaretlediğim yerdeki değerleri veritabanında kaç kolon varsa onların hepsini yazacaksın.Yani veritabanına gönderdiğin veriler 21 tane oluyor burayada onları yazacaksın. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 22, 2012 Share Posted June 22, 2012 Sanırım burda yanılıyorsun, SQL veritabanına veri gönderirken kaç kolona veri gönderdiğin önemli değil, önemli olan gönderdiğin veri adedi karşılığı kadar kolonu belirtmek. Örneğin 21 kolonluk bir tabloya sadece 1 veri gönderebilirsin. [quote]INSERT INTO tablo (kolon1,kolon2) VALUES (deger1,deger2)[/quote] şeklinde 21 kolonluk bir tabloya iki veri gönderebilirsin, diğer kolonlar boş kalacaktır evet ama satır eklenecektir. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 22, 2012 Editor Share Posted June 22, 2012 Haklısın kintaro arkadaş kolon isimlerini hiç yazmamış. Quote Link to comment Share on other sites More sharing options...
byfandex Posted June 22, 2012 Author Share Posted June 22, 2012 Şimd nereyi nasıl değiştirmem gerek ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.