PC Review


Reply
Thread Tools Rate Thread

Access ADP project server filter by Date greater than

 
 
akzeph
Guest
Posts: n/a
 
      10th Dec 2009
Access adp, 2007-2.0 connecting to SQL2008-2005, On a form there is a text
box with a control source of DuesPaidThru and the forms recordsource is
Members, sql is storing the date as Datetime. Typical entry is 12/01/2009.
Filter by Selection works fine on this field. When doing a server Filter by
form, if I enter a date such as 12/04/2009, Access will append quotes like
so: "12/04/2009", apply the filter and it is good. Now when attempting a
filter say greater than a date, it is not possible. Say >#12/01/2009#, just
does not work and the error returned is Cannot apply filter on one or more
fields specified in the filter property. Have you been here before, I could
use some help:}
 
Reply With Quote
 
 
 
 
Paul Shapiro
Guest
Posts: n/a
 
      10th Dec 2009
The # date delimiter is only for Access, not SQL Server.
I didn't test it, but since "12/04/2009" works as a filter, you might try
>"12/01/2009" or >'12/01/2009', which is SQL Server's standard text and date

delimiter.

"akzeph" <(E-Mail Removed)> wrote in message
news:371C4101-EDDB-4AC0-B021-(E-Mail Removed)...
> Access adp, 2007-2.0 connecting to SQL2008-2005, On a form there is a text
> box with a control source of DuesPaidThru and the forms recordsource is
> Members, sql is storing the date as Datetime. Typical entry is 12/01/2009.
> Filter by Selection works fine on this field. When doing a server Filter
> by
> form, if I enter a date such as 12/04/2009, Access will append quotes like
> so: "12/04/2009", apply the filter and it is good. Now when attempting a
> filter say greater than a date, it is not possible. Say >#12/01/2009#,
> just
> does not work and the error returned is Cannot apply filter on one or more
> fields specified in the filter property. Have you been here before, I
> could
> use some help:}


 
Reply With Quote
 
akzeph
Guest
Posts: n/a
 
      10th Dec 2009
Sorry, Paul, that does not work in this server filter applied to a form...
Access adp turns the one suggestion into
">""12/01/2009"""
The other is similarly rejected.

I just realized that if I have a field that is of type
DATE
it is possible to do a
Like '%2009-12%'
I think that is what I will do: Change the type to Date from Datetime...Then
this will show me dues paidthru in December 2009...End of another frustrating
Access issue:} Sorry Redmond <grin> I do like the app, but some of the
undocumented issues have been a challenge.

Again, with an adp: filtering on one date works, but a range will not. Does
that make sense?


"Paul Shapiro" wrote:

> The # date delimiter is only for Access, not SQL Server.
> I didn't test it, but since "12/04/2009" works as a filter, you might try
> >"12/01/2009" or >'12/01/2009', which is SQL Server's standard text and date

> delimiter.
>
> "akzeph" <(E-Mail Removed)> wrote in message
> news:371C4101-EDDB-4AC0-B021-(E-Mail Removed)...
> > Access adp, 2007-2.0 connecting to SQL2008-2005, On a form there is a text
> > box with a control source of DuesPaidThru and the forms recordsource is
> > Members, sql is storing the date as Datetime. Typical entry is 12/01/2009.
> > Filter by Selection works fine on this field. When doing a server Filter
> > by
> > form, if I enter a date such as 12/04/2009, Access will append quotes like
> > so: "12/04/2009", apply the filter and it is good. Now when attempting a
> > filter say greater than a date, it is not possible. Say >#12/01/2009#,
> > just
> > does not work and the error returned is Cannot apply filter on one or more
> > fields specified in the filter property. Have you been here before, I
> > could
> > use some help:}

>
> .
>

 
Reply With Quote
 
akzeph
Guest
Posts: n/a
 
      10th Dec 2009


"akzeph" wrote:

> Sorry, Paul, that does not work in this server filter applied to a form...
> Access adp turns the one suggestion into
> ">""12/01/2009"""
> The other is similarly rejected.
>
> I just realized that if I have a field that is of type
> DATE
> it is possible to do a
> Like '%2009-12%'
> I think that is what I will do: Change the type to Date from Datetime...Then
> this will show me dues paidthru in December 2009...End of another frustrating
> Access issue:} Sorry Redmond <grin> I do like the app, but some of the
> undocumented issues have been a challenge.
>
> Again, with an adp: filtering on one date works, but a range will not. Does
> that make sense?


Update: Just found out that changing the field source to date stops the text
box from formating Month/Year. I used to have the format property for the
field mm/yyyy and it would display month year. Now fomat does not work and I
get 2009-12-4 <sigh>

>
>
> "Paul Shapiro" wrote:
>
> > The # date delimiter is only for Access, not SQL Server.
> > I didn't test it, but since "12/04/2009" works as a filter, you might try
> > >"12/01/2009" or >'12/01/2009', which is SQL Server's standard text and date

> > delimiter.
> >
> > "akzeph" <(E-Mail Removed)> wrote in message
> > news:371C4101-EDDB-4AC0-B021-(E-Mail Removed)...
> > > Access adp, 2007-2.0 connecting to SQL2008-2005, On a form there is a text
> > > box with a control source of DuesPaidThru and the forms recordsource is
> > > Members, sql is storing the date as Datetime. Typical entry is 12/01/2009.
> > > Filter by Selection works fine on this field. When doing a server Filter
> > > by
> > > form, if I enter a date such as 12/04/2009, Access will append quotes like
> > > so: "12/04/2009", apply the filter and it is good. Now when attempting a
> > > filter say greater than a date, it is not possible. Say >#12/01/2009#,
> > > just
> > > does not work and the error returned is Cannot apply filter on one or more
> > > fields specified in the filter property. Have you been here before, I
> > > could
> > > use some help:}

> >
> > .
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter and Delete all rows with a date greater than or = today Tasha Microsoft Excel Programming 0 5th Feb 2008 10:11 PM
How do I filter a list using a greater than todays date function? =?Utf-8?B?TFY=?= Microsoft Excel Worksheet Functions 2 29th Apr 2005 06:07 PM
Access Project - cannot edit SQL Server records if create the table in project A C Microsoft Access External Data 1 22nd Dec 2004 04:28 AM
Trying to filter properly with SQL - Project Server Addin BAndrews Microsoft Outlook 7 20th Aug 2004 03:00 PM
Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged. windows 2003 server Claude seraphin Microsoft ASP .NET 11 26th Jan 2004 09:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.