Query Literal string

David44Coder

Member
Local time
Today, 14:38
Joined
May 20, 2022
Messages
137
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?
 
There is only a prompt if you enclose in [ ]. That should prompt even if not used as form RecordSource.

Post your query SQL.
 
Works for me?, using single ot double quotes?
Code:
SELECT TestTransactions.*, 'Name' AS TestField
FROM TestTransactions;
 

Users who are viewing this thread

Back
Top Bottom