Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"In short, _N is Richardian if, and only if, _N is not Richardian."


devel / comp.databases.ms-access / Re: How to add a blank column to a query for CSV export.

SubjectAuthor
* How to add a blank column to a query for CSV export.Alan Carpenter
`* How to add a blank column to a query for CSV export.Ron Weiner
 `- How to add a blank column to a query for CSV export.Alan Carpenter

1
How to add a blank column to a query for CSV export.

<XnsAEF411B9DA62ANotiHomenz@yourdomain.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=866&group=comp.databases.ms-access#866

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
Newsgroups: comp.databases.ms-access
Subject: How to add a blank column to a query for CSV export.
From: Not@iHome.nz (Alan Carpenter)
Organization: Home
Message-ID: <XnsAEF411B9DA62ANotiHomenz@yourdomain.com>
User-Agent: Xnews/2006.08.24
Lines: 57
X-Complaints-To: http://www.newsleecher.com/support/
NNTP-Posting-Date: Sun, 14 Aug 2022 13:44:33 UTC
Date: Sun, 14 Aug 2022 13:44:33 GMT
X-Received-Bytes: 3188
 by: Alan Carpenter - Sun, 14 Aug 2022 13:44 UTC

How to add a blank column to a query for CSV export.

I need to transfer contacts between two old phones, for a friend. I can
export and import CSV from each, but each uses a different layout so I'll
need to tweek.
For example, the field "Title" (for Mr, Mrs, Miss etc) is in the new but
not in the old. This means I'll need to create a blank, empty column
named "Title."

All clear, all easy, should be trivial BUT I cannot remember how to
create the new empty column without Access treating it as a parameter.
(Yes, I'm old.)

Here's a bit of basic SQL as an example.

SELECT GeorgeContacts.[First Name], GeorgeContacts.[Last Name],
GeorgeContacts.[Mobile Phone]
FROM GeorgeContacts;

This gives three columns First Name, Last Name and Mobile Phone.

How do I get the result Title, First Name, Last Name and Mobile Phone?

For what it's worth, here's the format of the full list of headers for
old and new. Sorry if word-wrap causes a problem.

Old: Name,Given Name,Additional Name,Family Name,Yomi Name,Given Name
Yomi,Additional Name Yomi,Family Name Yomi,Name Prefix,Name
Suffix,Initials,Nickname,Short Name,Maiden
Name,Birthday,Gender,Location,Billing Information,Directory
Server,Mileage,Occupation,Hobby,Sensitivity,Priority,Subject,Notes,Langua
ge,Photo,Group Membership,E-mail 1 - Type,E-mail 1 - Value,Phone 1 -
Type,Phone 1 - Value,Phone 2 - Type,Phone 2 - Value,Address 1 -
Type,Address 1 - Formatted,Address 1 - Street,Address 1 - City,Address 1
- PO Box,Address 1 - Region,Address 1 - Postal Code,Address 1 -
Country,Address 1 - Extended Address

New: "Title";"First name";"Middle name";"Last name";"Suffix";"Job
title";"Company";"Birthday";"SIP address";"Push-to-talk";"Share
view";"User ID";"Notes";"General mobile";"General phone";"General e-
mail";"General fax";"General video call";"General web address";"General
VOIP address";"General P.O.Box";"General extension";"General
street";"General postal/ZIP code";"General city";"General
state/province";"General country/region";"Home mobile";"Home phone";"Home
e-mail";"Home fax";"Home video call";"Home web address";"Home VOIP
address";"Home P.O.Box";"Home extension";"Home street";"Home postal/ZIP
code";"Home city";"Home state/province";"Home country/region";"Business
mobile";"Business phone";"Business e-mail";"Business fax";"Business video
call";"Business web address";"Business VOIP address";"Business
P.O.Box";"Business extension";"Business street";"Business postal/ZIP
code";"Business city";"Business state/province";"Business
country/region";""

I could type them all in, of course, but there's nearly 500 and I'm lazy
(and old.)

All help gratefully received.

Re: How to add a blank column to a query for CSV export.

<tdb0vv$35u42$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=867&group=comp.databases.ms-access#867

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: rw@domain.com (Ron Weiner)
Newsgroups: comp.databases.ms-access
Subject: Re: How to add a blank column to a query for CSV export.
Date: Sun, 14 Aug 2022 10:31:25 -0400
Organization: WorksRite
Lines: 12
Message-ID: <tdb0vv$35u42$1@dont-email.me>
References: <XnsAEF411B9DA62ANotiHomenz@yourdomain.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 14 Aug 2022 14:31:27 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="621c83c61cbb45a46385617450b8d5f6";
logging-data="3340418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ErFgeiOPui4p0WkmKTZd3"
Cancel-Lock: sha1:D7dnTs4cw8DgJvEAXhA+JQ10zsU=
X-Newsreader: MesNews/1.08.06.00-gb
X-Antivirus: AVG (VPS 220814-2, 8/14/2022), Outbound message
X-ICQ: 1701145376
X-Antivirus-Status: Clean
 by: Ron Weiner - Sun, 14 Aug 2022 14:31 UTC

on 8/14/2022, Alan Carpenter supposed :
> SELECT GeorgeContacts.[First Name], GeorgeContacts.[Last Name],
> GeorgeContacts.[Mobile Phone]
> FROM GeorgeContacts;

Try

SELECT "" as Title, GeorgeContacts.[First Name], GeorgeContacts.[Last
Name],GeorgeContacts.[Mobile Phone]
FROM GeorgeContacts;

Rdub

Re: How to add a blank column to a query for CSV export.

<XnsAEF4613AC19FCNotiHomenz@yourdomain.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=868&group=comp.databases.ms-access#868

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx37.iad.POSTED!not-for-mail
Newsgroups: comp.databases.ms-access
Subject: Re: How to add a blank column to a query for CSV export.
From: Not@iHome.nz (Alan Carpenter)
References: <XnsAEF411B9DA62ANotiHomenz@yourdomain.com> <tdb0vv$35u42$1@dont-email.me>
Organization: Home
Message-ID: <XnsAEF4613AC19FCNotiHomenz@yourdomain.com>
User-Agent: Xnews/2006.08.24
Lines: 13
X-Complaints-To: http://www.newsleecher.com/support/
NNTP-Posting-Date: Sun, 14 Aug 2022 21:33:28 UTC
Date: Sun, 14 Aug 2022 21:33:28 GMT
X-Received-Bytes: 1016
 by: Alan Carpenter - Sun, 14 Aug 2022 21:33 UTC

Ron Weiner <rw@domain.com> wrote in news:tdb0vv$35u42$1@dont-email.me:

> SELECT "" as Title, GeorgeContacts.[First Name], GeorgeContacts.[Last
> Name],GeorgeContacts.[Mobile Phone]
> FROM GeorgeContacts;
>

.... which of course is exactly what I wanted.

I would swear on a stack of database manuals I tried that more than once.
Oh well, I hope I like it in the Senile Care home I seem to be heading for.

Thanks for that. Take the rest of the day off.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor