Jump to content
Sign in to follow this  
mediteer

Auto Enter Date

Recommended Posts

Simple question--I want a specific field to 'auto enter' the current date every time the file is opened. Can someone help me.

Share this post


Link to post
Share on other sites

Create a script to Set Field[g_MyCurrentDateField; Get(CurrentDate)]. A global field sounds like the way to go here.

Then set the script to run when the file is opened.

File>File Options

Open/Close tab

Check the Perform Script box under "when opening this file" and then select your new script.

Share this post


Link to post
Share on other sites

thanks very much, that works for the current record being viewed at the time the entire file is opened, however all the other records in the file have not been auto-updated. Any way to do this so all the records in the file are updated also.

Share this post


Link to post
Share on other sites

As sbg2 suggested, make the field a global. That way the same value will apply to all records.

How do you make it a global?

define database>fields>select field>options>storage

Phil

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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