Jump to content
  • 0

Display last form entry when refreshing




I've got a simple form that allows me allocating staff (by name) to a particular room. It's always only one staff member per room. The staff names are in a dropdown list from a separate table.  Every time the form is submitted, it  is recorded with a timestamp and the results are displayed on a webpage ("Current allocation")

When reloading the form, I want the current (last saved allocation displayed, not the default (ie the first name in the list)

How do I do this?

Many thanks, Christian



Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi, @drckarcher,

In order to show some field on the Form DataPage from the entry that has most recent timestamp, we can use the Virtual Field with Calculated Value with the following SQL statement:

SELECT TOP(1) field_we_want_to_show FROM tbl_test ORDER BY Time_Stamp_Field DESC

I'm not sure if I understand would you like to show last allocation based on some value from other field, so could you please elaborate a little bit more about the issue?

Link to comment
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.

Answer this question...

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

  • Create New...