User defined field in query for yes/no question (1 Viewer)

mounty76

Registered User.
Local time
Today, 01:27
Joined
Sep 14, 2017
Messages
341
Good Morning!

I want to add a temporary field to a query that prompts the user for a yes or no answer. I can do this by putting something like " ILL: [Has person been ill] " in the query field, Only issue (and this is really first world problems! haha) is that the user has to type in Yes or No. Is it possible for the popup box when the query is run to just have two boxes YES and NO? FYI there is data from a few other tables/queries in this same query and the results are needed for a report.

Any help much appreciated!

Cheers
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:27
Joined
May 7, 2009
Messages
19,245
of course you can do that in query.
you already constructed the Expression for you query:

ILL: [Has person been ill? (Y/N)]
 

CJ_London

Super Moderator
Staff member
Local time
Today, 09:27
Joined
Feb 19, 2013
Messages
16,616
popup boxes as you describe are fine whilst developing but don't really have a place in a production application. What if the user doesn't type Y or N but something else or leaves blank?

Better to have a form where the user can select from a list of possible options ('Yes','No') and the query refer to that
 

mounty76

Registered User.
Local time
Today, 01:27
Joined
Sep 14, 2017
Messages
341
OK thanks for this, agree better to have a popup form with the questions, thanks guys
 

Users who are viewing this thread

Top Bottom