Jump to content

Script question: replace field contents


This topic is 8400 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm having trouble completing what (I think) should be a simple script, and can't figure out what's wrong. Any help would be appreciated.

I've created a database for our afterschool program where students need to log in and log out. What I'm trying to do now is create a script which "resets" all students to a logged out status (this will be used by the program administrator at the end of the day to start fresh the next day, as many of the students fail to log out properly)

The database identifies a student as logged in or out by the contents of a field called "action" (0 = logged out; 1 = logged in).

My script is:

Enter Browse mode

Go to Layout "list"

Set Field "action",0

This works one record at a time, but I need it to work on all records in the database. My guess is there's a way to do it with looping, but can't figure out how.

Thanks in advance for any ideas.

Peter Knowles

Columbia High School

Link to comment
Share on other sites

This topic is 8400 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.