Query Literal string (1 Viewer)

David44Coder

Member
Local time
Tomorrow, 07:07
Joined
May 20, 2022
Messages
110
I found this from a Google search

Literal strings are enclosed in single or double quotation marks.
You can use literal strings just like you normally use a column name in the SELECT statement. The literal string will be displayed in very row of the query result.


And this is proven in query result. But if a Form is based on that query, there's a prompt to enter it, rather than just use it.
Is there a way around this?
 

June7

AWF VIP
Local time
Today, 11:07
Joined
Mar 9, 2014
Messages
5,473
There is only a prompt if you enclose in [ ]. That should prompt even if not used as form RecordSource.

Post your query SQL.
 

Gasman

Enthusiastic Amateur
Local time
Today, 20:07
Joined
Sep 21, 2011
Messages
14,310
Works for me?, using single ot double quotes?
Code:
SELECT TestTransactions.*, 'Name' AS TestField
FROM TestTransactions;
 

Users who are viewing this thread

Top Bottom