Thanks John. I'm on it.
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Wednesday, July 19, 2017 8:07 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] sql for make table query with a boolean field
Liz-
With a "Make Table" query, you're at the mercy of SQL using default data types - for example, Text (255) for all strings and number / double for most numbers. To control the data type, you need to build the table in advance - either in code or the UI - and then use INSERT.
John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
(Paris, France)
On Jul 19, 2017, at 5:00 PM, Liz Ravenwood liz_ravenwood@beaerospace.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Pros, in a rush here so thought I'd ask the experts. I need to create a table with a default of a Boolean yes/no type field.
My sql is:
SELECT ptBOM1Level.Username, ptBOM1Level.OpSeqBOM, ptBOM1Level.IXKIT, ptBOM1Level.IXITM, ptBOM1Level.IMLITM, ptBOM1Level.IMDSC1, ptBOM1Level.QTYPER, ptBOM1Level.IXSCRP, ptBOM1Level.IMLLX, ptBOM1Level.IBMERL, ptBOM1Level.IBSTKT, ptBOM1Level.IBGLPT, ptBOM1Level.IBITC, "" AS Revision, True AS DeleteFlag INTO tblBOMTempFS
FROM ptBOM1Level;
But it results in a "number" value. Subsequent coding needs to set this to "true or false" so I'd rather not just deal with this as being numeric.
Thanks.
This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Posted by: Liz Ravenwood <Liz_Ravenwood@beaerospace.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
Tidak ada komentar:
Posting Komentar