Solved

Create a new field in a query that is populated with user input.

Posted on 2011-02-13
3
447 Views
Last Modified: 2012-05-11
I can create a new field in a query and hard code a value or blank value.  Is it possible to create a new field in a query that is populated with data keyed into a prompt from a user?  The data keyed into the prompt can be anything and will not be used to filter query results at all.  It is simply a variable field that will show in the query results.
0
Comment
Question by:vsllc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 34885431
Sure ... like this:

SELECT Table1.*, [Enter Your Data] AS MyPrompt
FROM Table1;


mx
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 34885432
select f1,f2, [Enter Data] as f3
from tablex
0
 

Author Comment

by:vsllc
ID: 34885464
Worked perfectly!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question