Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Hi englishman,
Here, it's in French, but I try to help you with my own poor english !
I don't know how you read your datasource. Is it by a XML file ? Or by a database like Access ? Or else ?
If it's by a database, I suppose you have a connection on it. Then, you only need a SQL request to fill your combobox.
But, if you load a XML file with dataset.fromxml, it's seems you can't use SQL request.
In this case, I have a fucntion witch look like a simple SQL request but my function works with only one table and only one condition.
You just have to call the function directly in the datasource property of your combobox with 2 args : the table, and the condition (like "Id_User=" & val.ToString)
When I select an enterprise in the CboEnterprise I would like only to show Users from this enterprise How can i do???
I tried this but it doesn't work: Dim Result = From Usr In Users() Where Usr.Id > CboReseaux.ValueMember CboUser.DataSource = Result
Hi englishman,
Here, it's in French, but I try to help you with my own poor english !
I don't know how you read your datasource.
Is it by a XML file ?
Or by a database like Access ?
Or else ?
If it's by a database, I suppose you have a connection on it.
Then, you only need a SQL request to fill your combobox.
But, if you load a XML file with dataset.fromxml, it's seems you can't use
SQL request.
In this case, I have a fucntion witch look like a simple SQL request but my
function works with only one table and only one condition.
You just have to call the function directly in the datasource property of
your combobox with 2 args : the table, and the condition (like "Id_User=" &
val.ToString)
Here, it's in French, but I try to help you with my own poor english !
I don't know how you read your datasource. Is it by a XML file ? Or by a database like Access ? Or else ?
If it's by a database, I suppose you have a connection on it. Then, you only need a SQL request to fill your combobox.
But, if you load a XML file with dataset.fromxml, it's seems you can't use SQL request.
In this case, I have a fucntion witch look like a simple SQL request but my function works with only one table and only one condition.
You just have to call the function directly in the datasource property of your combobox with 2 args : the table, and the condition (like "Id_User=" & val.ToString)
When I select an enterprise in the CboEnterprise I would like only to show Users from this enterprise How can i do???
I tried this but it doesn't work: Dim Result = From Usr In Users() Where Usr.Id > CboReseaux.ValueMember CboUser.DataSource = Result
sfauchille
On 23 oct, 20:14, <Stéphane> wrote:
Hi englishman,
Here, it's in French, but I try to help you with my own poor english !
I don't know how you read your datasource. Is it by a XML file ? Or by a database like Access ? Or else ?
If it's by a database, I suppose you have a connection on it. Then, you only need a SQL request to fill your combobox.
But, if you load a XML file with dataset.fromxml, it's seems you can't us e SQL request.
In this case, I have a fucntion witch look like a simple SQL request but my function works with only one table and only one condition.
You just have to call the function directly in the datasource property of your combobox with 2 args : the table, and the condition (like "Id_User =" & val.ToString)
> When I select an enterprise in the CboEnterprise I would like only to > show Users from this enterprise > How can i do???
> I tried this but it doesn't work: > Dim Result = From Usr In Users() Where Usr.Id = > CboReseaux.ValueMember > CboUser.DataSource = Result- Masquer le texte des mess ages précédents -
- Afficher le texte des messages précédents -
Merci je vais essayer ça. J'aurai pu te dire que j'étais français aussi!!!
On 23 oct, 20:14, <Stéphane> wrote:
Hi englishman,
Here, it's in French, but I try to help you with my own poor english !
I don't know how you read your datasource.
Is it by a XML file ?
Or by a database like Access ?
Or else ?
If it's by a database, I suppose you have a connection on it.
Then, you only need a SQL request to fill your combobox.
But, if you load a XML file with dataset.fromxml, it's seems you can't us e
SQL request.
In this case, I have a fucntion witch look like a simple SQL request but my
function works with only one table and only one condition.
You just have to call the function directly in the datasource property of
your combobox with 2 args : the table, and the condition (like "Id_User =" &
val.ToString)
> When I select an enterprise in the CboEnterprise I would like only to
> show Users from this enterprise
> How can i do???
> I tried this but it doesn't work:
> Dim Result = From Usr In Users() Where Usr.Id =
> CboReseaux.ValueMember
> CboUser.DataSource = Result- Masquer le texte des mess ages précédents -
- Afficher le texte des messages précédents -
Merci je vais essayer ça.
J'aurai pu te dire que j'étais français aussi!!!
Here, it's in French, but I try to help you with my own poor english !
I don't know how you read your datasource. Is it by a XML file ? Or by a database like Access ? Or else ?
If it's by a database, I suppose you have a connection on it. Then, you only need a SQL request to fill your combobox.
But, if you load a XML file with dataset.fromxml, it's seems you can't us e SQL request.
In this case, I have a fucntion witch look like a simple SQL request but my function works with only one table and only one condition.
You just have to call the function directly in the datasource property of your combobox with 2 args : the table, and the condition (like "Id_User =" & val.ToString)
> When I select an enterprise in the CboEnterprise I would like only to > show Users from this enterprise > How can i do???
> I tried this but it doesn't work: > Dim Result = From Usr In Users() Where Usr.Id = > CboReseaux.ValueMember > CboUser.DataSource = Result- Masquer le texte des mess ages précédents -
- Afficher le texte des messages précédents -
Merci je vais essayer ça. J'aurai pu te dire que j'étais français aussi!!!
De rien !
Sinon, accessoirement, dans un groupe de discussion français, tu peux aussi rédiger tes messages en... français...
Stéphane.
"sfauchille" a écrit dans le message de news:
Merci je vais essayer ça. J'aurai pu te dire que j'étais français aussi!!!
De rien !
Sinon, accessoirement, dans un groupe de discussion français, tu peux aussi
rédiger tes messages en...
français...
Stéphane.
"sfauchille" <sfauchille@gmail.com> a écrit dans le message de news:
150b760f-891e-419c-af99-2772b8d7f879@s9g2000prm.googlegroups.com...
Merci je vais essayer ça.
J'aurai pu te dire que j'étais français aussi!!!