×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

field value replacement loop

field value replacement loop

field value replacement loop

(OP)
    I used to do PAL before ObjectPal many many years ago.  I still use native Paradox for basic database needs. My wife has given me a project -- to tabulate points accumulated by high school swimmers and get the average for each. Simple task.  However, the information is in a spreadsheet where the swimmer's name is in a column/row field with the swim points for each race are in rows underneath without the swimmer's name -- grouping.
    Normally, if the list was short, I could just use Ctrl-D to copy the person's name to the rows underneath. But I have over a hundred names and over 3,500 records.
    I want to write a script that will check the name field, if there is a name there, copy it to a variable, go to the next record and paste it into the field that has either a Y or is blank. Then go down to the next record, do an if/then check and keep looping until the end of the file when each time it encounters a name, the variable changes for the next paste.
    The db file name is swim.  The three fields in it are points, name and race.
    Could someone help me?  It has been so long and I've drawn a blank on doing it.
    Once I get all the names on the same row with the points/races, I can then do a query and report to produce what my wife needs.  It is getting the names on each line that I need assistance with.

RE: field value replacement loop

(OP)
FYI, I figured out how to do it.  It took me about 9 hours, but the code works

RE: field value replacement loop

dpizac,

Just scanning questions and noticed this one.  Good to hear that you have solved it.  If you ever have anything similar I suggested a solution for Pharmer a bit back. It is at thread177-1271223: Want to substitute a blank field ditto? titled 'Want to substitute a blank field ditto?'     

I hope that this helps.

Regards

Bytander

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close