Jump to content

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

Recommended Posts

  • Newbies
Posted

Help..I have tried but failed.

I have a database for a videotape library using Version 5.0 on PC

As well as client,title, duration etc it has two key fields.

"Master Number" and "Reel Number"

These fields are defined as numbers.

There maybe an entry in "master" but not "reel", vice versa or no entry in either.

When I add a new record to the database, I want to find the highest value in each field, add 1 and create a new record placing the calculated values in the appropriate fields.

I cannot figure out how to store and retain the value of each find.

Can anyone help.

Regards,

David Barrett

Melbourne, Australia.

Posted

Define a field:

Constant (calculation, number, indexed) = 1

Create a self relationship (call it "SelfRel") with Contant <--> Constant

Create a new record script:

New Record/Request/Page

Set Field(Master Number, Max(SelfRel::Master Number) + 1)

Set Field(Reel Number, Max(SelfRel::Reel Number) + 1)

-bd

This topic is 8515 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.