Modify Titles of Query Fields (1 Viewer)

jcbhydro

Registered User.
Local time
Today, 14:32
Joined
Jul 26, 2013
Messages
187
Good Afternoon,

I have a simple Query which very satisfactorily exports data to a Tab Delimited Text File to upload to a website.

The field titles are dictated by the Table Field Names but I would like to modify these for the export. Is there a simple criteria code by which this can be achieved.
Any suggestions would be welcome.

Regards,

jcbhydro
 

plog

Banishment Pending
Local time
Today, 16:32
Joined
May 11, 2011
Messages
11,669
No criteria, but you can use aliases:

Name: cust_Name
Birthday: cust_DOB


In the query, type what you want it to be named, put a colon after it and then the field name.
 

jcbhydro

Registered User.
Local time
Today, 14:32
Joined
Jul 26, 2013
Messages
187
Please excuse my ignorance, but where exactly does one insert the alias?

jcbhydro
 

jcbhydro

Registered User.
Local time
Today, 14:32
Joined
Jul 26, 2013
Messages
187
Thanks for that.
The solution works well for most of my aliases, but some of my needs create problems.
For instance, a couple of my upload demands involve a full stop,
ie Book Ref.:BOOKREF. Is it possible to achieve such an alias?

I also have a couple of instances in my query which also cause problems;
Signed:SIGNEDYN:Iif([Library].[SIGNED],"Yes","No")

My various attempts have failed to achieve success.

jcbhydro
 

David R

I know a few things...
Local time
Today, 16:32
Joined
Oct 23, 2001
Messages
2,633
I don't fully understand your first question. Yes it is possible to put this at the end of a field:
Code:
& "."

For your second, you're not asking it a question... what values can [SIGNED] have?
Code:
Signed:SIGNEDYN:Iif([Library].[SIGNED]="Y","Yes","No")
maybe?
 

Keith Tedbury

Registered User.
Local time
Today, 22:32
Joined
Mar 18, 2013
Messages
26
Is the Signed:SIGNEDYN meant to be alias for the field.
If so you will need to put it in quotation marks so

"Signed:SIGNEDYN":Iif([Library].[SIGNED],"Yes","No")

It uses the : to distinguish between the alias and the field, 2 of them confuses it if you don't have the quotation marks
 

Users who are viewing this thread

Top Bottom