AOB
Registered User.
- Local time
- Today, 06:59
- Joined
- Sep 26, 2012
- Messages
- 627
Hi guys,
I've been using a SELECT INTO statement to import data from a linked text file into a temporary table in Access. Something along the lines of :
(There's an INNER JOIN in there and some Nz / CLng functions but just want to keep it simple...)
Now - I've just realised I also need to create a couple of extra 'dummy' fields in my temporary table (for later on in the show) and I need them to be Yes/No format (will set them to False at first, then run some separate queries later to update them)
I tried this :
But this sets Field4 and Field5 as Number fields, with each record given a value of 0.
Can anybody advise what syntax is required in the SQL to make these fields Yes/No rather than Number?
Thanks as always!!
AOB
I've been using a SELECT INTO statement to import data from a linked text file into a temporary table in Access. Something along the lines of :
SELECT [tblLink].[fld1] AS Field1,
[tblLink].[fld2] AS Field2,
[tblLink].[fld3] AS Field3
INTO [tblTemp]
FROM [tblLink]
(There's an INNER JOIN in there and some Nz / CLng functions but just want to keep it simple...)
Now - I've just realised I also need to create a couple of extra 'dummy' fields in my temporary table (for later on in the show) and I need them to be Yes/No format (will set them to False at first, then run some separate queries later to update them)
I tried this :
SELECT [tblLink].[fld1] AS Field1,
[tblLink].[fld2] AS Field2,
[tblLink].[fld3] AS Field3,
False AS Field4,
False AS Field5
INTO [tblTemp]
FROM [tblLink]
But this sets Field4 and Field5 as Number fields, with each record given a value of 0.
Can anybody advise what syntax is required in the SQL to make these fields Yes/No rather than Number?
Thanks as always!!
AOB