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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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