Re: Union Query Data type Question
From: Douglas J. Steele (NOSPAM_djsteele_at_NOSPAM_canada.com)
Date: 07/16/04
- Next message: mj: "Re: crosstab query filtered by form"
- Previous message: Douglas J. Steele: "Re: Useless queries"
- In reply to: teddyb777: "Union Query Data type Question"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Jul 2004 17:55:57 -0400
Try using CDbl([RealAmt]) in your query rather than simply [RealAmt]
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "teddyb777" <teddyb777@discussions.microsoft.com> wrote in message news:2B6D85B5-F451-472D-9EC5-B57E1F578F06@microsoft.com... > I have four tables that have the same columns and data types (4 different fiscal years data). I have a union query that combines the information into one table using UNION ALL. Then I am querying the Combined table, but I am having trouble because it says that my number fields are text. I have a field called RealAmt that is a Double Number data type in all four tables that are unioned. When I try to write criteria to query that combined field (RealAmt >0 and <100) it turns it into (RealAmt >"0" and <"100") so my results are incorrect. Any help would be appreciated.
- Next message: mj: "Re: crosstab query filtered by form"
- Previous message: Douglas J. Steele: "Re: Useless queries"
- In reply to: teddyb777: "Union Query Data type Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|