[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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!

6.2

Function issues

Asked by Arnaud241 in VB Database Programming

Tags: adouniversity, does, vb

I'm developping an interface for my database (MS Access) using VB 6.0. I have created a form that I've called StudentCenter. the data on the form are linked to the Student table's in my DB. the  data control used for the connection is "adoStudentLN". I've also implemented another data control named "adoUniversity" that links the form to the University table in my DB.
My problem is the following;
I've implemented the function just below to check if the student that I'm about to insert in my DB is attending a University that is already saved or not in my DB. However, everytime I run the test it seems that the test is falling, because for each entry even though the university is not saved in my DB yet, I get the "existence" comfirmation message everytime.

Private Function UnivExist() As Boolean
Dim strSQL As String
    'create query string using current univ_name value on studentcenter form as search condition
    strSQL = "SELECT * FROM University WHERE univ_name='" & frmStudentCenter.adoUniversity.Recordset![univ_name] & "'"
    'set SQL string as current record for the University's active data control
    frmStudentCenter.adoUniversity.RecordSource = strSQL
    'refresh the data control
    frmStudentCenter.adoUniversity.Refresh
    'test for the university existence
    If frmStudentCenter.adoUniversity.Recordset.RecordCount = 0 Then
        'university does not exist
        UnivExist = False
    Else
        UnivExist = True
    End If
End Function

I hope the given information is enough to solve the issues. If not let me know
thanks for your help
sincerely yours
[+][-]09/14/06 03:08 PM, ID: 17524835Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/06 04:56 PM, ID: 17525422Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/06 06:21 PM, ID: 17525990Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/14/06 06:32 PM, ID: 17526047Accepted Solution

View this solution now by starting your 30-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

Zone: VB Database Programming
Tags: adouniversity, does, vb
Sign Up Now!
Solution Provided By: bingie
Participating Experts: 2
Solution Grade: C
 
[+][-]09/17/06 08:56 AM, ID: 17538692Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/06 08:56 AM, ID: 17538695Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89