Compile error. in query expression

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: M Fuller (fullerm_at_mmri-ny.com)
Date: 02/12/04


Date: Thu, 12 Feb 2004 09:11:12 -0800

Make that Access 2000, not 200 =)
>-----Original Message-----
>I've recently been having a problem with an Access 200
>database and I can't figure out why. In a couple of
>tables, I have date fields, and data is imported from tab-
>delimited files on a daily basis. I have queries built
>that are called by ASP pages, and they work fine. I've
>gone back to some of the queries to slightly modify them,
>and when I try to open them, I get an error: "Compile
>error. in query expression 'Year([PostDate])'". I've
>tried several Date functions on these date/time fields,
>and they all give me a compile error.
>
>I also get a compile error when trying to use
>DoCmd.TransferText in a module - "Compile error: Invalid
>outside procedure".
>
>I can't figure out why these queries and modules used to
>be fine, and in fact still run as stored procedures from
>ASP pages, but won't open correctly in Access itself.
Can
>anyone give me any direction?
>
>Thanks
>.
>



Relevant Pages

  • Compile error. in query expression
    ... gone back to some of the queries to slightly modify them, ... I also get a compile error when trying to use ... and in fact still run as stored procedures from ... ASP pages, but won't open correctly in Access itself. ...
    (microsoft.public.access.queries)
  • Re: Access migration to SQL Server
    ... caveat in the first sentence, i.e. remove access all together and you don't ... > about having to convert all your queries to views and stored procedures. ... > using a named query parameter to look up a value from a form control and ...
    (microsoft.public.access.conversion)
  • Re: Access migration to SQL Server
    ... caveat in the first sentence, i.e. remove access all together and you don't ... > about having to convert all your queries to views and stored procedures. ... > using a named query parameter to look up a value from a form control and ...
    (microsoft.public.sqlserver.server)
  • Re: Off Topic - Access to Postgres
    ... >>However, I find that using views, stored procedures and pass through queries ... >procedures and pass-through queries. ... >The reason pass-through queries are a problem for Access (and stored ... - To the extent that your application relies on server-side objects, ...
    (comp.databases.ms-access)
  • Re: Off Topic - Access to Postgres
    ... If sprocs and pass through queries are not the solution then ... >However, I find that using views, stored procedures and pass through queries ... The reason pass-through queries are a problem for Access (and stored ... may have to create a saved pass-through query, ...
    (comp.databases.ms-access)