> Hi All,
>
[quoted text clipped - 30 lines]
> I have tried many things but I think just changing the query as
> follows, should work but have had no success.
What are the symptoms that tell you that you have had no success? Don't
forget, we have no access to your data so we can't run this code
ourselves to see what symptoms you are getting.
> <%sql = "SELECT division.name, division.id from [division-league],
> division
> where [division.league].id = division.id
> and league=" & thisleague
You should supply a few rows of sample data (in tabular format),
followed by desired results from that sample data (also in tabular
format), followed by the bad results this query is giving you.

Signature
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
FatBear - 15 Apr 2008 17:55 GMT
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in news:e
$a3H8vnIHA.6064@TK2MSFTNGP03.phx.gbl:
>> Hi All,
>>
[quoted text clipped - 43 lines]
> followed by desired results from that sample data (also in tabular
> format), followed by the bad results this query is giving you.
Hi Bob,
Thanks for your response and I promise I won't crosspost anymore. Here
are more details regarding the problem:
1. It is an access database.
2. The problem is that no data appears in the dropdown. The box is there
but there are no values in it.
3. Here are the tables I'm using:
LEAGUE
ID Name
145 Monday night Shinny - JD
DIVISION
ID Name
176 Team A
177 Team B
178 Team C
179 Team D
180 Team E
DIVISION-LEAGUE
ID Division League
176 177 145
177 178 145
178 179 145
179 180 145
180 181 145
<%sql = "SELECT division.name, division.id from [division-league],
division
where [division.league].id = division.id
and division.league=" & thisleague
thisleague is a variable that equates to 145 in this case.
Please let me know if you need anything else.
Thanks,
Dave
Bob Barrows [MVP] - 15 Apr 2008 18:34 GMT
> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in news:e
> $a3H8vnIHA.6064@TK2MSFTNGP03.phx.gbl:
[quoted text clipped - 63 lines]
>
> thisleague is a variable that equates to 145 in this case.
Have you verified that with
Response.write sql
?

Signature
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
FatBear - 15 Apr 2008 18:52 GMT
>> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in news:e
>> $a3H8vnIHA.6064@TK2MSFTNGP03.phx.gbl:
[quoted text clipped - 51 lines]
>
> ?
Yes, it has been verified with response.write sql.
Bob Barrows [MVP] - 15 Apr 2008 18:58 GMT
>>> 1. It is an access database.
>>> 2. The problem is that no data appears in the dropdown. The box is
[quoted text clipped - 15 lines]
>
> Yes, it has been verified with response.write sql.
And when you run that query in Access you get results?
If that's the case, the problem is with the code after this point.

Signature
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.