Advertisement

09.15.2008 at 08:14AM PDT, ID: 23732228
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.5

Null result from SQL query

Asked by nkoriginal in Active Server Pages (ASP), SQL Server 2005

Tags:

Hello Folks, I've this query:

rs.source = "SELECT * from accessform_appSys where formID="&request.QueryString("id")

the problem with this query is, sometimes the formID doesn't exist in my DB.
So when I return the values, of course I will have null values.

Now, I must to display a result/edit page with differents inputs like this

<input type="text" value="<%=rs("drive_folder")%>" name="t1_drive_folder" maxlength="60" size="60" />

The problem is, if the rs("drive_folder") return null, I will have an error:  
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

I know I can put if condition in each input, where I've a <%=rs("xxxx")%>
also I know I can use: if not rs.eof then .......
the last option is ok BUT... if I dont have result the input will be NOT display. Of course I can do if not rs.eof then ....... ELSE  (show the inputs) but it's to much code.

So the question is:

Exist any option to do something like this:

<input type="text" value="<%=if not isnull(rs("drive_folder"))%>" name="t1_drive_folder" maxlength="60" size="60" />

I dont want to use to much IF conditions.

If somebody can help me, I will really appreciate it, I've to many hours to resolve this little problem

Thanks guys
Start Free Trial
 
 
[+][-]09.15.2008 at 08:19AM PDT, ID: 22479506

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:20AM PDT, ID: 22479515

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:21AM PDT, ID: 22479529

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.15.2008 at 08:24AM PDT, ID: 22479569

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:34AM PDT, ID: 22479689

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:36AM PDT, ID: 22479708

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:39AM PDT, ID: 22479737

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:40AM PDT, ID: 22479750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:44AM PDT, ID: 22479802

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:46AM PDT, ID: 22479816

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:51AM PDT, ID: 22479882

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:53AM PDT, ID: 22479910

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:53AM PDT, ID: 22479920

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 08:57AM PDT, ID: 22479974

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), SQL Server 2005
Tags: ASP VB
Sign Up Now!
Solution Provided By: albarytu
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.15.2008 at 09:03AM PDT, ID: 22480047

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 09:10AM PDT, ID: 22480110

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628