Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Displaying Records Greater Than a Certain Date

Featured Replies

Hi, This is my first wack at a web database. I have a list of social events. I want the web users to see only the upcoming events not any that have already happened. I have done this locally but can't seem to figure it out for the web companion. My fields are "date", "time", "location" etc. I also have a "flag" field that I use to find the needed records locally. Thanks in advance for any info.

Dan crazy.gif" border="0

If you have a flag field, you could always just search on it for checked records.

- John

Insert this javascript into the head portion of your page, call the showIt function on load in the body tag <body 0nLoad="showIt()"> and it put the current date and 3 dots in the date field (can be hidden). You will need to name your form.

<script>

function SystemDate(){

//current system date

var time=new Date()

var x=time

var dd=x.getDate(); (dd<10) ? dd="0"+dd : dd

var m=x.getMonth();

var yy=x.getYear();

var mm=m+1; (mm<10) ? mm="0"+mm : mm

var yyyy=yy+1900; (yyyy>3000) ? yyyy=yy : yyyy

SD= mm + "/" + dd + "/" + yyyy;

return SD

}

function showIt(){

document.myForm.date.value = SystemDate()+"..."

}

</script>

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.