Only show certain fields after a date has passed

How would I set a recordset to only show certain fields after
a date has
passed?
For example:
I have a list of classified adverts some which include an
image which the
client pays extra for. After a certain time period, say, 1
year,
would it be possible to use some kind of IF statement (or
something) to no
longer show the image?
Thanks
Gary

scrap that entire post man.
I'll rewrite it here in a few.
"crash" <[email protected]> wrote in message
news:[email protected]...
>
OK. I can't be as much help as I was hoping, since I
just did this in
> PHP and MySQL. But we can do a bit. My ASP is rusty
enough I'm just going
> to give you what I think you should do.
>
> You'll need to research how to format dates and most
importantly strip
> away the timestamp. In MySQL, you can format the date as
it comes out of
> the recordset. I'm not sure if you can do this in
access, but I would
> imagine that you can (indeed, it might be the same SQL).
>
> <%
> varToday = Date (should be able to format out timesteamp
here);
> varTerm = 365; 'This will be your constant term, defined
in days, it looks
> like from archived posts
>
> varExpiredDate = varToday = varTerm;
>
> Search your recordset via varTerm. ie
> WHERE datefield < <% varTerm %>
>
> You will need to search date formatting in Access to see
how to strip out
> the Timestamp from your date, but you should be able to
do this from your
> SQL statement, and return just the date, this will be
compared to your
> varTerm, which basically states that if your signup date
is beyond a year
> from today, your ad will need to be renewed.
>
> I"m not very happy with this, but it's all my brain is
coming up with
> right now. Gimme a few to review it and I might have
something more for
> you.
>
> HTH, sorry I couldn't give you code or urls for date
formatting.
>
> Additionally, you will eventually need to build
somethign that checks
> images and and dates and then sends an email to your
customer letting them
> know their term has expired.
>
> OR - You could also add a new field to your database
which automatically
> updates an "expire" time in your ad table which
automatically adds days to
> the time. If you do this, you don't have to worry about
stripping
> timestamps or anyting, and you can just do a simple
lookup for if Date >=
> DateExpireField then don't pull image.
>
>
>

Similar Messages

  • My version of Lightroom 6 is still showing trial version after Serial Number has been Installed.  I have tried re-installation but still have the same problem.  Could you please forward a solution to this problem.

    My version of Lightroom 6 is still showing trial version after Serial Number has been Installed.
    I have tried re-installation but still have the same problem.
    Could you please forward a solution to this problem.

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Sharepoint 2013 designer workflow auto approve task after due date is passed

    sharepoint 2013 designer workflow auto approve task after due date is passed.
    Could we approve the task automatically once due date is apssed?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    If your task is created by a workflow (first) and stored in a separate task list, you can create another workflow on this particular task list, then each workflow instance would check if current task is expired (not approved/rejected), then
    determine if update current task's "Task Outcome" as approved (and update task status as complete), and then create a retention policy on this paricular task list to trigger the workflow on due date .
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Daniel Yang
    TechNet Community Support

  • Beginner User:  Locking (making read only after data entry) a single field after selecting date

    Hello, I am a beginner user trying to create a form using Adobe Livecycle.  One of the fields I would like to make read only/protect it/password protect it after a user selects the date.   For example, I select August 17, 2010 as the date. After I select it, I would like that field to be read only or protected so that another user can not edit it. 
    I am a complete novice using XML or codes.  I'm learning alot from these boards though.    I know its probably simple.
    Any help is appreciated.

    The attached locks a text field if the date chosen is "08-17-2010". If it is not the text field is accessible.
    // form1.page1.date::exit - (JavaScript, client)
    if (this.rawValue == "2010-08-17") {
      form1.page1.tf.access = "protected";
    else {
      form1.page1.tf.access = "";
    Steve

  • Creating a Materialized View Log After the Data has been instered

    Hi,
    I am trying to create a method of replication from Oracle to MySQL using the Materialized View Log table.
    This has been done before and works quite well, the only problem is that I am trying to impliment the log after the table has been created and populated and wish to push all the existing data through the log file...
    Does anyone know if it is possible to refresh the Materialized View Log and not a Materialized View.
    The way the replication is intended to work is:
    Oracle> Data inserted into table
    Oracle> writes the vector data to the MVL
    Script> Monitors the MVL and can see the changes being made to the Oracle Table
    Script> Updates MySQL with the data and removes the rows from the MVL
    MySQL is then used with other unix systems
    Currently we export the data from the table using Triggers and a cronjob running every x minute to check for changes in the TriggerTables
    Many thanks for your time on this, I have been checking for almost a whole working day and not found the answer to this problem.

    Thats what I thought, the MVL will only read data that has changed since it was created and wont have the option to load in all the data as though it was made before the table was created.
    From what I have read, the MVL is quicker than a Trigger and I have some free code that prooved to work from a MVL using it as a reference to know what records to update. There is not that much to a MVL, a record ID and type of update, New, Update or Delete.
    I think what I will have to do is work on a the same principle for the MVL but use a Trigger as this way we can do a full reload if required at any point.
    Many thanks for your help.

  • Repopulating an Autocomplete field once bad data has been deleted

    After initially inputting the wrong information in a user name field, I found that I could delete the bad auto-complete 'suggestion' to take it away forever. However, since this was done, I haven't been able to have the proper data save as an auto-complete 'suggestion' since. This means that upon entering the first few characters or using the down arrow nothing pops up to auto-complete with.
    How can the field be repopulated with the correct information?
    P.S.: Other pages that have auto complete work just fine. It is only this one field that I manually deleted that won't repopulate anything I type in.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • Question about the new Dock - is it possible to only show certain things?

    I'm wondering if it is possible to only show the things I want in the dock, like my apps, my stacks, etc, but to NOT show all of my open windows in the dock?
    For instance I often have up to ten or more apps running at the same time, and all of the windows for those appear in the right side of the dock, so I end up with a normal dock icon for Itunes, but then another Itunes icon on the far right for that window, I have the main Ical icon and then also another ical icon on the right, etc....
    It ends up with all of those "extra" icons on the right making my dock icons so small and hard to read.
    thanks,
    Jeff

    If an application has several windows open the application will always show in the Dock.
    However, if you click on the icon in the Dock and hold down on the mouse button a menu will appear the allows you to choose Hide.
    Hide removes any open windows, for that application, from view, either on the desktop or in the Dock.
    You can also utilize Spaces which allows you to create separate workspace configurations with only certain windows open in each.

  • IMovie only show background music after connecting to my external iMovie Mediathek, no video!!! desperat, i potentially lost a big project...

    I work with an external iMovie-Mediathek so my big project don't mess up my macbook. I was working on a big project (45 min.) after the program crashed. Now, when I try to connect again to the external Mediathek, it will only show the background music I used, no video material at all... !!!!!!!!!!!!!!!! But in the "events"-section, it looks normal with the preview just like always during the last couple of days... It even shows the size of the file with 146GB (which is correct), but still only the music is displayed (about 7 tracks).
    I need urgent help. Same thing happened to the security-backup I make regularly...

    Here's a picture of the iM window. 3 Projects available but only 2 desplayed? HOW I GET MY 3rd PROJECT BACK????

  • 500 GB TC only showing 476.9 after erase.

    After erasing TC to start a new fresh install, I only show 476.9 GB capacity. Shouldn't it be 500 since it's a 500 GB? Or at least a bit closer than 476.9?
    I opened the TC and manually deleted all files and then erased through AirPort Disks.
    Is 476.9 a normal true capacity for the 500 GB or have I lost 23.1 Gig somehow?
    Thanks.

    That is normal. When you format a drive you always lose some space. The bigger the drive, the more space you lose. On my 1TB drive, there is only around 960GB of free space. Just look at the hard drive on your computer and you will see that the total space of the drive does not match what you would have on paper (ie: if you have an 80GB drive you will see that you really only have around a 71GB partition.
    This might help explain it better
    http://compreviews.about.com/od/storage/a/ActualHDSizes.htm
    Message was edited by: adrenalin

  • Restrict certain fields after a digital signature

    I am using Acrobat XI Pro.  I have added a digital signature field.  Then >properties>signed tab>mark as read only>just these fields.   When I click to select the fields I want, they don’t check. I can “select all” and then they all check, but if I click to un-check specific ones, they don’t un-check either. 
    I have double-checked my field names, and there is no punctuation and there are no spaces.  What am I missing?

    Use the space bar to select the form fields rather than trying to click with the mouse.

  • Co3 error activation date has passed

    Hi all I'm having problems with vision everytime i reboot the box that was delivered yesterday i get the c03 error i tried calling call centre there usless keep saying i promise it will come on it takes time but my activation date has now pass im starting to wish i never left virgin now any ideas how i can watch tv

    Hi,
    1. A C03 error means your Vision account has not been set up correctly at BTs end.
    2. A c02 error means the box tried to upgrade its software and failed. This 99% probably happened because of point 1.
    Get the Mods on it. They are very helpful.
    Rank - Mostly Harmless.

  • Update the iPad 2 with new iOS uppgrade, but after the screen only show the apple and nothing else. has been the case since yesterday. have turned off the iPad and turned it on again many times, but still only apple shown. What should I do?

    UPdate the iPad wjith new iOS upgrade that where shown under settings on the iPad, but after I did the upgrade the screen has only shown the apple and I can't get back. This has been the case since yesterday. Have turned off t.he iPad many times, but every timebwkhen Ibturn it on again the screen onöy show the apple icon and nothing else happends. What should I do? Anyone having the same problem and how can this be solved?

    Did you try to connect in recovery mode, explained in this article?
    iOS: Unable to update or restore

  • Issue regarding LSMW, not showing all records after Read Data

    Dear Experts,
    Plz help..  I need to configure a LSMW for ROH material.. so I made recording, n then create a structure.. accordingly.
    the problem is.. at the time of reading data from .txt file.at the step of Display Read Data it showing only 50 records, rest are not displaying.. but not showing any error.. so my question to our expert that is their any limitations for reading data... if their.. then how could it be elasticated...
    plz suggest..
    regards,
    sandy

    the read step has a selection screen where you can define from which to which record you want read.
    make sure this selection is empty for a test.
    Further check if your source file has more than 50 records.
    then make sure that you really read this source file and not any other version  (check path and file name in step 7 of LSMW)

  • 60GB HD only shows as 31GB after crash?

    Hi all,
    I had a hard drive have a directory failure. The drive just dissapeared from the desktop one day. It showed in disk utility, but only as a 31.5GB drive when it's actually 60GB.
    Neither Disk Utility, Disk Warrior or TechTool could repair the drive, but I recovered all the data (~50GB of it) using Techtool. I then erased the drive using disk utility, and went to copy all the data back, but it reports that there isn't enough space, as Disk Utility only formatted the drive as 31.5GB.
    Disk Warrior and Techtool both report no problems with the drive, and the SMART status is OK.
    So, how do I format the drive back to it's correct 60GB?
    G4/933 1.2GB 60/60/120GB   Mac OS X (10.4.5)  

    Hi, Jamie -
    If this is a drive that was added (and not one that
    came with the machine originally), some drives have
    an additional jumper setting that limits the drive's
    apparent capacity to 32GB. This was done in response
    the some PC CPUs not being able to address any drive
    larger than that.
    Check your drive for such a jumper, and remove it if
    found.
    I'll have a look just in case, but this drive has been in there for a few years happily working at 60GB, so it seems strange that it would drop to 31GB now.

  • I can not map field after changing data source location

    Hi
    I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
    OS:Windows7
    DB:Oracle11
    CR:XI Release 2
    Does anyone have an idea?

    hi,
    In Map Fields window, there is an option "Match Type".
    Please Unchek that option, so that you will be able to see all the fields from that table.
    Also, while mapping please verify the datatypes of source and target fields.
    Regards,
    Vamsee

Maybe you are looking for

  • Balance in trasation currency in j1IIN

    Hi, I am getting the following error while saving the Excise Invoice in J1IIN. Balance in transaction currency Message no. F5702 Diagnosis A balance has occurred in transaction currency 'INR' with the following details: Exchange rate '00', amount '  

  • CRM 5.0 - B2C Internet Sales  - Ggeneral questions on web frontend

    Hi We are in the very early stages of putting in B2C and B2B in the company. ( just putting pen to paper for blueprinting ) Currently our B2C is done via third party software and not integrated with SAP. The marketing dept can easily switch over imag

  • CS4 will not launch

    I have installed CS4 Design standard on a 10.5.8 Mac (PPC). The apps seem to switch off mid-launch.

  • XP home or Professional

    Need to purchase XP, is Pro worth the extra coin or should I get Home!

  • SCXI-1127 and Reset NISwitch VI

    I have a question with regard to resetting the SCXI-1127 Card. I wrote a test VI that performs the following in sequence to verify the -1127 operation: 1) Initialize the SCXI-1127 Card (using a Instrument Descriptor of SCXI1::5::INDEP) 2) Control a s