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!

*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.

Jobs

Displaying Date & Time when the form is run

Displaying Date & Time when the form is run

(OP)
Hi,

I have an added a text item to the form with datatype as 'Date' and initial value as $$datetime$$. Also I have given this code on 'When-New-Form-Instance' trigger

:books.displaydatetime :=sysdate;

The forms runs without errors and displays the current date and time. However when I click the 'Execute Query', instead of displaying records, a message is shown - 'Do you want to save the changes you made' and then the form would go into an 'FRM -40505' error.

To correct this , I went through this thread and changed the 'Database Item' Property to 'No'. Now, I am able to execute the query. But, another problem occurs. When I click on execute, the date and time disappears. The text field looks empty when ever I go to execute query mode.

Need help on this.

Thanks
Deepti

RE: Displaying Date & Time when the form is run

Are you sure it disappears in execute query, not ENTER query mode? In enter query mode the whole block is cleared. I may suggest you to place that field into separate block. If I understand your task it's for displaying only, not for storing into database, right?

Regards, Dima
http://seminihin.narod.ru
 

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!

Resources

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