Skip to main content

AccessTr.neT


İlişkili Combobox ListBox

İlişkili Combobox ListBox

#6
Demek ki ben Column özelliğini sorgu kriteri olarak hiç kullanmamışım, çünkü bu hatayla karşılaşmamıştım.
Şimdi Access'in help'ine baktım, orada Column özelliğini sadece Macro ve Visual Basic kısmında kullanabilirsin diyor.
Alıntı:This property setting is only available by using a macro or Visual Basic

Bu durumda sorguda kriter olarak listbox'ın Column özelliğini kullanamıyoruz (boundcolumn haricinde),
bunun için sizin yaptığınız gibi arada gizli bir textbox kullanmak gerekiyor.

Alıntı:Column Property
You can use the Column property to refer to a specific column, or Column and row combination, in a multiple-column combo box or list box. Read-only Variant.

expression.Column(Index, Row)

expression Required. An expression that returns one of the objects in the Applies To list.

Index Required Long. A long integer that can range from 0 to the setting of the ColumnCount property minus one.

Row Optional Variant. An integer that can range from 0 to the setting of the ListCount property minus 1.

This property setting is only available by using a macro or Visual Basic. This property setting isn't available in Design view and is read-only in other views.

Remarks
Use 0 to refer to the first column, 1 to refer to the second column, and so on. Use 0 to refer to the first row, 1 to refer to the second row, and so on. For example, in a list box containing a Column of customer IDs and a Column of customer names, you could refer to the customer name in the second Column and fifth row as:

Forms!Contacts!Customers.Column(1, 4)

You can use the Column property to assign the contents of a combo box or list box to another control, such as a text box. For example, to set the ControlSource property of a text box to the value in the second Column of a list box, you could use the following expression:

=Forms!Customers!CompanyName.Column(1)
If the user has made no selection when you refer to a Column in a combo box or list box, the Column property setting will be Null. You can use the IsNull function to determine if a selection has been made, as in the following example:

If IsNull(Forms!Customers!Country)
Then MsgBox "No selection."
End If
Note To determine how many columns a combo box or list box has, you can inspect the ColumnCount property setting.
Bildiğini bilenin arkasından git, bildiğini bilmeyeni uyar, bilmediğini bilene öğret, bilmediğini bilmeyenden kaç.
Konfüçyüs
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
İlişkili Combobox ListBox - Yazar: okileturc - 25/03/2009, 14:44
Cvp: İlişkili Combobox ListBox - Yazar: emturker - 25/03/2009, 15:09
Cvp: İlişkili Combobox ListBox - Yazar: okileturc - 25/03/2009, 15:17
Cvp: İlişkili Combobox ListBox - Yazar: Seruz - 25/03/2009, 15:41
Cvp: İlişkili Combobox ListBox - Yazar: okileturc - 25/03/2009, 15:58
Cvp: İlişkili Combobox ListBox - Yazar: Seruz - 25/03/2009, 16:17
Cvp: İlişkili Combobox ListBox - Yazar: okileturc - 25/03/2009, 16:19
Cvp: İlişkili Combobox ListBox - Yazar: Seruz - 25/03/2009, 16:22
Cvp: İlişkili Combobox ListBox - Yazar: okileturc - 25/03/2009, 16:33
Cvp: İlişkili Combobox ListBox - Yazar: Seruz - 25/03/2009, 16:58
Cvp: İlişkili Combobox ListBox - Yazar: makarax - 28/06/2009, 16:03
Cvp: İlişkili Combobox ListBox - Yazar: hgsoftware - 05/06/2011, 15:18
Cvp: İlişkili Combobox ListBox - Yazar: ozanakkaya - 29/06/2009, 13:28
Cvp: İlişkili Combobox ListBox - Yazar: benremix - 01/07/2009, 07:34
Cvp: İlişkili Combobox ListBox - Yazar: assenucler - 01/07/2009, 08:03
Cvp: İlişkili Combobox ListBox - Yazar: okileturc - 01/07/2009, 11:50
Cvp: İlişkili Combobox ListBox - Yazar: makarax - 02/07/2009, 10:40
Cvp: İlişkili Combobox ListBox - Yazar: ceko06 - 09/06/2011, 09:33
Cvp: İlişkili Combobox ListBox - Yazar: Seruz - 09/06/2011, 09:55
Task