Advertisement

10.13.2007 at 10:36PM PDT, ID: 22891862
[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.8

VBScript; Query DBF FIles

Asked by defore in dBase, Visual Basic Programming, VB Script

Tags: , ,

Hello All,

I will do my best to explain this problem. I am attemping to query 3 dbf files for student information. The School uses a program called SASI. Some of you may be familiar with this. I would like to use vbscript to query the files directly. The information I need is located in 3 different files. Here is how the files are laid out. One File contains the General Student Information (ASTU.DBF). Another file contains the student schedules (ACLS.DBF). The last file ties the class to the teacher (AMST.DBF).

The first file (ASTU.DBF) conatins a STULINK field which ties the student information with the Schedules (ACLS.DBF). The second file (ACLS.DBF) contains a CLASSLINK field which ties this file to the Teacher File(AMST.DBF).

This is the info that I need. Student Name, Address, Phone, located in the first file, and 1st Period Teacher' Name  located in the 3rd File. Here is a snippett of my code, minus all the variable declerations.



DO WHILE NOT (StuRS.EOF)   ' ASTU.DBF
strTest = 01  
    DO WHILE NOT (ClsRS.EOF)  ' ACLS.DBF
        IF StuRS.Fields(StuLink) = ClsRS.Fields(StuLink) Then
              DO WHILE NOT (SchRS.EOF) ' AMST.DBF
                    IF ClsRS.Fields(ClassLink) = SchRS.Fields(ClassLink) Then
                           IF SchRS.Fields(Period) = 01 Then
                                wscript.echo StuFirstName & StuLastName & TchName
                                strTest = 02
                                Exit Do
                           Else
                           End If
                    Else
                    End If
              SchRS.MoveNext
              Loop
        Else
        End If
    IF strTest = 02 Then
        Exit Do
    Else
    End If  


    ClsRS.MoveNext
    Loop

ClsRS.MoveFirst
SchRS.MoveFirst
StuRS.MoveNext
Loop

wscript.quit


I hope by this code you can see what I am trying to accomplish. I am not to concerned with the syntax of the code, but more with the logic and flow. I can actually get some of the information i need back, but I am only getting half of the records.

Thanks in AdvanceStart Free Trial
[+][-]10.14.2007 at 02:12PM PDT, ID: 20074835

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.

 
[+][-]10.14.2007 at 02:13PM PDT, ID: 20074837

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.

 
[+][-]10.14.2007 at 05:31PM PDT, ID: 20075320

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.

 
[+][-]10.14.2007 at 05:31PM PDT, ID: 20075322

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.

 
[+][-]10.14.2007 at 05:42PM PDT, ID: 20075339

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.

 
[+][-]10.14.2007 at 06:01PM PDT, ID: 20075374

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.

 
[+][-]10.14.2007 at 06:39PM PDT, ID: 20075486

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.

 
[+][-]10.14.2007 at 06:44PM PDT, ID: 20075513

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.

 
[+][-]10.14.2007 at 06:53PM PDT, ID: 20075533

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

Zones: dBase, Visual Basic Programming, VB Script
Tags: vbscript, query, dbf
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.14.2007 at 07:07PM PDT, ID: 20075616

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.

 
[+][-]10.14.2007 at 07:12PM PDT, ID: 20075635

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.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_1_20070628