sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Myk Quayce's Avatar

ASP.NET / Access query Problem


Question posted by: Myk Quayce (Guest) on November 12th, 2005 11:40 PM
I have an excellent piece of SQL that returns 35 random rows from a table
but it only works as an MS Access query and not in an ASP.NET webpage where
I want to use it.

Is there any way for ASP.NET to get the results from an Access query?

The SQL is...

SELECT TOP 35 * FROM Questions WHERE UserType='Student' ORDER BY
Rnd(QuestionNo);

TIA

--

Myk Quayce

"Whatever happened to all the fun in the world?" - Frank Zappa


1 Answer Posted
Tom van Stiphout's Avatar
Tom van Stiphout November 12th, 2005 11:42 PM
Guest - n/a Posts
#2: Re: ASP.NET / Access query Problem

On Mon, 10 May 2004 15:05:11 +0100, "Myk Quayce"
<myk@quayce.freeserve.co.uk.spamless> wrote:

No, because you are using the VBA function Rnd.
-TOm.

[color=blue]
>I have an excellent piece of SQL that returns 35 random rows from a table
>but it only works as an MS Access query and not in an ASP.NET webpage where
>I want to use it.
>
>Is there any way for ASP.NET to get the results from an Access query?
>
>The SQL is...
>
>SELECT TOP 35 * FROM Questions WHERE UserType='Student' ORDER BY
>Rnd(QuestionNo);
>
>TIA[/color]

 
Not the answer you were looking for? Post your question . . .
196,907 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,907 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors