Ask a Question related to Dreamweaver AppDev, Design and Development.
-
woodywyatt #1
Automatically remove record?
Can anyone tell me if its possible to automatically remove (not delete) a
record from database after a certain date has passed?
I want to use a feature like this to stop clients advertisements being shown
on a results page after a renewal date has passed
Many thanks
Gary
woodywyatt Guest
-
Deleteing a record from mySQL automatically with a specified date.
Hi, I have a script that pulls data from a mySQL db in the form of a Job listing front end. I would like to know how to automatically delete a... -
Automatically adding date/time stamp to an edited record
To record just the date/time the record was created: Add a new Date/Time field to your table, and set its Default Value property to: =Now() To... -
Stop adding record in subform after record count = 1
Can someone help in in what to put after the THEN statment to allow one entry if the Record count is =>1 in the Before insert or should I set the... -
how to remove a programe from the add/remove list manually
i am using winXP home, i just remove a programe from the start menu(start>>all programes>>name of the programe>>uninstall),but the programe name is... -
create record (in subform) automatically
Hi all I'm beginning to think in the wrong way, so I need help. In an Access 2000 database I have two (very) related tables, Invoices and Amount... -
Drew #2
Re: Automatically remove record?
Yes, depending on the database server you are using... you could use
triggers, but probably the best way would be to modify your query for the
ads so that it only shows ads that aren't past their renewal date, here is
an example,
SELECT *
FROM Ads
WHERE AdRenewDate > GetDate()
The above code will work with SQL Server, not sure about other database
systems...
HTH,
Drew
"woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
news:d365hh$6ei$1@forums.macromedia.com...> Can anyone tell me if its possible to automatically remove (not delete) a
> record from database after a certain date has passed?
> I want to use a feature like this to stop clients advertisements being
> shown
> on a results page after a renewal date has passed
> Many thanks
> Gary
>
>
Drew Guest
-
woodywyatt #3
Re: Automatically remove record?
I think I've got myself even more confused here.
Okay, I'll explain what I need to do..
I have a form where users can fill in their details and upload an image to a
database to be displayed as an advertisement. I would also like to somehow
insert today's date from this form at the same time. Then after one year,
from this date automatically remove (not delete) the record from database.
Can you point me in the right direction?
I'm using ASP running on Access (DSN connection)
Thanks
Gary
Thanks
"Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:d369oq$cuk$1@forums.macromedia.com...a> Yes, depending on the database server you are using... you could use
> triggers, but probably the best way would be to modify your query for the
> ads so that it only shows ads that aren't past their renewal date, here is
> an example,
>
> SELECT *
> FROM Ads
> WHERE AdRenewDate > GetDate()
>
> The above code will work with SQL Server, not sure about other database
> systems...
>
> HTH,
> Drew
>
>
> "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
> news:d365hh$6ei$1@forums.macromedia.com...> > Can anyone tell me if its possible to automatically remove (not delete)>> > record from database after a certain date has passed?
> > I want to use a feature like this to stop clients advertisements being
> > shown
> > on a results page after a renewal date has passed
> > Many thanks
> > Gary
> >
> >
>
woodywyatt Guest
-
Lionstone #4
Re: Automatically remove record?
Remove and delete are the same thing. To only show records less than a year
old, then do what the last post told you to, filter by date where dateField-->= DateAdd("yyyy",-1,Date())
-------------------------------------------------------------------
You must SHOW YOURSELF to e-mail me. No cowards allowed!
"woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
news:d36qn0$6mt$1@forums.macromedia.com...a> I think I've got myself even more confused here.
> Okay, I'll explain what I need to do..
> I have a form where users can fill in their details and upload an image tothe> database to be displayed as an advertisement. I would also like to somehow
> insert today's date from this form at the same time. Then after one year,
> from this date automatically remove (not delete) the record from database.
> Can you point me in the right direction?
> I'm using ASP running on Access (DSN connection)
> Thanks
> Gary
>
> Thanks
> "Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
> news:d369oq$cuk$1@forums.macromedia.com...> > Yes, depending on the database server you are using... you could use
> > triggers, but probably the best way would be to modify your query foris> > ads so that it only shows ads that aren't past their renewal date, heredelete)> > an example,
> >
> > SELECT *
> > FROM Ads
> > WHERE AdRenewDate > GetDate()
> >
> > The above code will work with SQL Server, not sure about other database
> > systems...
> >
> > HTH,
> > Drew
> >
> >
> > "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
> > news:d365hh$6ei$1@forums.macromedia.com...> > > Can anyone tell me if its possible to automatically remove (not> a>> >> > > record from database after a certain date has passed?
> > > I want to use a feature like this to stop clients advertisements being
> > > shown
> > > on a results page after a renewal date has passed
> > > Many thanks
> > > Gary
> > >
> > >
> >
>
Lionstone Guest
-
woodywyatt #5
Re: Automatically remove record?
Thanks for the swift reply
Excuse my ignorance but can you clarify what the correct SQL would be?
I've tried using this -
SELECT *
FROM upload
WHERE Date >= 'DateAdd("yyyy",-1,Date())'
But this doesn't seem to work.
Do I need to enter anything in the variables fields?
"Lionstone" <HIDELionstoneHIDE@HIDEhush.com> wrote in message
news:d36u40$b3k$1@forums.macromedia.com...year> Remove and delete are the same thing. To only show records less than adateField> old, then do what the last post told you to, filter by date whereto> --> >= DateAdd("yyyy",-1,Date())
> -------------------------------------------------------------------
> You must SHOW YOURSELF to e-mail me. No cowards allowed!
>
>
>
>
> "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
> news:d36qn0$6mt$1@forums.macromedia.com...> > I think I've got myself even more confused here.
> > Okay, I'll explain what I need to do..
> > I have a form where users can fill in their details and upload an imagesomehow> a> > database to be displayed as an advertisement. I would also like toyear,> > insert today's date from this form at the same time. Then after onedatabase.> > from this date automatically remove (not delete) the record fromhere> the> > Can you point me in the right direction?
> > I'm using ASP running on Access (DSN connection)
> > Thanks
> > Gary
> >
> > Thanks
> > "Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
> > news:d369oq$cuk$1@forums.macromedia.com...> > > Yes, depending on the database server you are using... you could use
> > > triggers, but probably the best way would be to modify your query for> > > ads so that it only shows ads that aren't past their renewal date,database> is> > > an example,
> > >
> > > SELECT *
> > > FROM Ads
> > > WHERE AdRenewDate > GetDate()
> > >
> > > The above code will work with SQL Server, not sure about otherbeing> delete)> > > systems...
> > >
> > > HTH,
> > > Drew
> > >
> > >
> > > "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
> > > news:d365hh$6ei$1@forums.macromedia.com...
> > > > Can anyone tell me if its possible to automatically remove (not> > a> > > > record from database after a certain date has passed?
> > > > I want to use a feature like this to stop clients advertisements>> >> > > > shown
> > > > on a results page after a renewal date has passed
> > > > Many thanks
> > > > Gary
> > > >
> > > >
> > >
> > >
> >
>
woodywyatt Guest
-
Lionstone #6
Re: Automatically remove record?
No quotes around the DateAdd function.
--
-------------------------------------------------------------------
You must SHOW YOURSELF to e-mail me. No cowards allowed!
"woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
news:d36vpv$d68$1@forums.macromedia.com...image> Thanks for the swift reply
> Excuse my ignorance but can you clarify what the correct SQL would be?
> I've tried using this -
> SELECT *
> FROM upload
> WHERE Date >= 'DateAdd("yyyy",-1,Date())'
> But this doesn't seem to work.
> Do I need to enter anything in the variables fields?
>
>
> "Lionstone" <HIDELionstoneHIDE@HIDEhush.com> wrote in message
> news:d36u40$b3k$1@forums.macromedia.com...> year> > Remove and delete are the same thing. To only show records less than a> dateField> > old, then do what the last post told you to, filter by date where> > --> > >= DateAdd("yyyy",-1,Date())
> > -------------------------------------------------------------------
> > You must SHOW YOURSELF to e-mail me. No cowards allowed!
> >
> >
> >
> >
> > "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
> > news:d36qn0$6mt$1@forums.macromedia.com...> > > I think I've got myself even more confused here.
> > > Okay, I'll explain what I need to do..
> > > I have a form where users can fill in their details and upload anfor> to> somehow> > a> > > database to be displayed as an advertisement. I would also like to> year,> > > insert today's date from this form at the same time. Then after one> database.> > > from this date automatically remove (not delete) the record from> > > Can you point me in the right direction?
> > > I'm using ASP running on Access (DSN connection)
> > > Thanks
> > > Gary
> > >
> > > Thanks
> > > "Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
> > > news:d369oq$cuk$1@forums.macromedia.com...
> > > > Yes, depending on the database server you are using... you could use
> > > > triggers, but probably the best way would be to modify your query> here> > the> > > > ads so that it only shows ads that aren't past their renewal date,> database> > is> > > > an example,
> > > >
> > > > SELECT *
> > > > FROM Ads
> > > > WHERE AdRenewDate > GetDate()
> > > >
> > > > The above code will work with SQL Server, not sure about other> being> > delete)> > > > systems...
> > > >
> > > > HTH,
> > > > Drew
> > > >
> > > >
> > > > "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
> > > > news:d365hh$6ei$1@forums.macromedia.com...
> > > > > Can anyone tell me if its possible to automatically remove (not> > > a
> > > > > record from database after a certain date has passed?
> > > > > I want to use a feature like this to stop clients advertisements>> >> > > > > shown
> > > > > on a results page after a renewal date has passed
> > > > > Many thanks
> > > > > Gary
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Lionstone Guest



Reply With Quote

