Home All Groups Group Topic Archive Search About

MAking a bound form from a query

Author
28 Aug 2006 8:01 PM
reidarT
I have a dataset with 2 tables. I have madee a query of theese 2 tables.
When I look at the datasources the query is not shown.
How do I make a form with the query as source?
reidarT

Author
29 Aug 2006 5:58 AM
Cor Ligthert [MVP]
Reidar,

The term "query" is not an unique term, can you explain it a little bit
more?

Cor

Show quoteHide quote
"reidarT" <rei***@eivon.no> schreef in bericht
news:ub1YIztyGHA.3464@TK2MSFTNGP03.phx.gbl...
>I have a dataset with 2 tables. I have madee a query of theese 2 tables.
> When I look at the datasources the query is not shown.
> How do I make a form with the query as source?
> reidarT
>
Author
29 Aug 2006 5:42 PM
reidarT
When I am in the dataset designer, I can right click an get the options
DataTable, TableAdapter and Query when I click Add.
I have made a query and I want to use this query in  fom.
reidarT

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> skrev i melding
news:e7DwDAzyGHA.3632@TK2MSFTNGP03.phx.gbl...
> Reidar,
>
> The term "query" is not an unique term, can you explain it a little bit
> more?
>
> Cor
>
> "reidarT" <rei***@eivon.no> schreef in bericht
> news:ub1YIztyGHA.3464@TK2MSFTNGP03.phx.gbl...
>>I have a dataset with 2 tables. I have madee a query of theese 2 tables.
>> When I look at the datasources the query is not shown.
>> How do I make a form with the query as source?
>> reidarT
>>
>
>
Author
30 Aug 2006 11:15 PM
Dennis
You might want to look at the DataView Class to filter the DataTables then
bind the DataView to a DataGrid, etc.  However, I'm not sure you can filter
two DataTables in a DataView but maybe you can investigate joining the tables
first.
--
Dennis in Houston


Show quoteHide quote
"reidarT" wrote:

> When I am in the dataset designer, I can right click an get the options
> DataTable, TableAdapter and Query when I click Add.
> I have made a query and I want to use this query in  fom.
> reidarT
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> skrev i melding
> news:e7DwDAzyGHA.3632@TK2MSFTNGP03.phx.gbl...
> > Reidar,
> >
> > The term "query" is not an unique term, can you explain it a little bit
> > more?
> >
> > Cor
> >
> > "reidarT" <rei***@eivon.no> schreef in bericht
> > news:ub1YIztyGHA.3464@TK2MSFTNGP03.phx.gbl...
> >>I have a dataset with 2 tables. I have madee a query of theese 2 tables.
> >> When I look at the datasources the query is not shown.
> >> How do I make a form with the query as source?
> >> reidarT
> >>
> >
> >
>
>
>
Author
31 Aug 2006 5:45 AM
Cor Ligthert [MVP]
Reidar,

In my idea is that Query as it is a Select returning a whole table with the
GetBy.

That table you can than bind to your datagridview in the same way as you did
it with a fill.

Just a guess,

Cor

Show quoteHide quote
"reidarT" <rei***@eivon.no> schreef in bericht
news:OuD9XK5yGHA.3440@TK2MSFTNGP06.phx.gbl...
> When I am in the dataset designer, I can right click an get the options
> DataTable, TableAdapter and Query when I click Add.
> I have made a query and I want to use this query in  fom.
> reidarT
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> skrev i melding
> news:e7DwDAzyGHA.3632@TK2MSFTNGP03.phx.gbl...
>> Reidar,
>>
>> The term "query" is not an unique term, can you explain it a little bit
>> more?
>>
>> Cor
>>
>> "reidarT" <rei***@eivon.no> schreef in bericht
>> news:ub1YIztyGHA.3464@TK2MSFTNGP03.phx.gbl...
>>>I have a dataset with 2 tables. I have madee a query of theese 2 tables.
>>> When I look at the datasources the query is not shown.
>>> How do I make a form with the query as source?
>>> reidarT
>>>
>>
>>
>
>