Re: Nearest max date before a specified one

Tech-Archive recommends: Fix windows errors by optimizing your registry



Well I thought it was strange to see the R there. It would be valid syntax if
you had a table named "R" but wished to refer to the table in the query as
"tblDates". Normally, you would probably do that the other way round - a table
named tblDates that you wanted to refer to as R to cut down on typing or as a
second instance of the same table in some self-referencing schemes.



Frank wrote:
>
> Hi,
>
> Thank you for the responses. I have noticed in both responses the letter "R"
> after word FROM. What does this do? Thanks.
>
> Frank
>
> "John Spencer (MVP)" <spencer4@xxxxxxxxxxx> wrote in message
> news:42B494CF.1EC27E65@xxxxxxxxxxxxxx
> >
> > SELECT Max(tblDates.dEntryDate) as MaxDate
> > FROM R tblDates
> > WHERE (((tblDates.dEntryDate)<CDate('1.1.2005')));
> >
> > Frank wrote:
> >>
> >> Hi,
> >>
> >> I am trying to create an SQL statement which would return to me the
> >> maximum
> >> date before a specified date. I was able to get a list of records with
> >> dates
> >> prior to the one I enter but not the last one. Can anyone help? Thanks.
> >>
> >> SELECT tblDates.dEntryDate
> >> FROM R tblDates
> >> WHERE (((tblDates.dEntryDate)<CDate('1.1.2005')));
> >>
> >> Frank
.



Relevant Pages

  • Re: Nearest max date before a specified one
    ... MS Access MVP ... I have noticed in both responses the letter ... >> Frank wrote: ... >>> FROM R tblDates ...
    (microsoft.public.access.queries)
  • Re: Nearest max date before a specified one
    ... Thank you for the responses. ... > Frank wrote: ... >> FROM R tblDates ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: OT: Obama will lose
    ... I wonder if anyone else in this group (Frank?, Owen?, Gerrie?) is getting ... What motivates you to refer to Mr Obama as "BHO"? ... Why don't you refer to the other candidates by their initials? ...
    (rec.music.classical.recordings)
  • Re: Nearest max date before a specified one
    ... SELECT Maxas MaxDate ... Frank wrote: ... > I am trying to create an SQL statement which would return to me the maximum ... > FROM R tblDates ...
    (microsoft.public.access.queries)
  • Re: Unauthorized Reading of OutlookExpress messages
    ... > Thanks, Frank. ... > Minimal security is fine. ... > Please elaborate (or refer my to an article) ...
    (microsoft.public.windows.inetexplorer.ie6.outlookexpress)