1 Son düzenleyen, avrasya34 (11.04.2015 15:42:32)

Konu: cannot acces the selected table hatası

Visual Fox Pro
Select masilama

Select asi,Sum(miktar) miktar From masilama Where masilama.genno=m.mgelno Group By 1 order by 2 desc Into Cursor as11
If m.masitoplam>0
    with This
        .text7.Visible=.T.
        .text7.Value=m.masitoplam
        .text7.Visible=.T.
        .label7.Visible=.t.
        .label8.Visible=.t.
*        .combo2.Visible=.t.
    endwith
else
    with this
        .text11.Visible=.f.
        .text7.Visible=.f.
        .label7.Visible=.f.
        .label8.Visible=.f.
*        .combo2.Visible=.f.
    endwith
Endif
If m.masitoplam>1
    select as11
    With This
        .combo2.RowSource=""
        .combo2.RowSource="as11.miktar,asi"
        .combo2.RowSourceType= 6
        .combo2.ColumnWidths="60,150"
        .combo2.Visible=.T.
    Endwith
else
    this.parent.combo2.Visible=.f.
Endif
endif

Bu satırdan sonra hata veriyor
If m.masitoplam>1
    select as11
    With This
        .combo2.RowSource="as11.miktar,asi"

kurtulamadım bu hatadan gelen hata mesajını ok lersem birdaha hata mesajı gelmiyor. ama ilk çalıştığında bu mesajı alıyorum
cannot acces the selected table as11.miktar,asi

formun datasession =2

2 Son düzenleyen, ugurlu2001 (11.04.2015 15:55:10)

Re: cannot acces the selected table hatası

Avrasya,
* Hata mesajı nedir? Mesajı bilsek, neyle ilgili olduğuna ait bir fikrimiz olur!
* Hatalı kodunu Try/Catch içinde çalışır. Hata oluştuğunda hatanı işle (Yada işleme, ben bazen tembellikten hata önemli değilse; program çalışmaya devam etsin diye böyle bir kurnazlık yapıyorum --- Hatanın gerçekten önemsiz olduğuna emin olduğum durumlarda -- )

Uğur
-------------------------------------------------------------------------------------------------------------
Hayat bir bisiklete binmek gibidir. Pedalı çevirmeye devam ettiğiniz sürece düşmezsiniz. Claude Peppeer
Kusuru söylenmeyen adam, ayıbını hüner sanır.  Türk Atasözü

3

Re: cannot acces the selected table hatası

aldığım hata şu
cannot acces the selected table as11.miktar,asi

4 Son düzenleyen, KONURALP (11.04.2015 18:29:15)

Re: cannot acces the selected table hatası

Sorun şu bence.

form u açınca sql cumlesi oluşmamış durumda.
Form a girmeden  sql cumlesini oluşturman lazım.

Yada 

Combobox.controlsource=""

yap   sql cumlesinden sonra

combobox.controlsource="as11.miktar,asi"

gibi kullanman lazım.

5

Re: cannot acces the selected table hatası

sql den hemen sonra 
Combobox.controlsource="" yazınca düzeldi.  ilginç olan ilk çağrıldığında hata veriyordu sonrasında hata vermeden işlem yapılıyordu.  bu işlemin mantığını çözemesede sorunum çözüldü. teşekkürler hocam

6

Re: cannot acces the selected table hatası

Muhtemelen as11  daha oluşmadan

combobox ın controlsource sine bakıyor.

Benim tahminim bu..