A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

query with question, where you choose from values based on table



 
 
Thread Tools Display Modes
  #1  
Old February 17th, 2006, 05:29 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query with question, where you choose from values based on table

I want to make query, where it ask for value (name) and then uses this value
in query itself. Names are stored in separated table. Thank you.
  #2  
Old February 17th, 2006, 11:47 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query with question, where you choose from values based on table

Enclosed the question in square brackets in the criteria box of the column
you want. Like:

SELECT *
FROM Table1
INNER JOIN Table2 ON Table1.FirstName = Table2.FirstName
WHERE (((Table2.FirstName)=[Enter a name to find]));
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

"This is display name " This is display name
...
I want to make query, where it ask for value (name) and then uses this

value
in query itself. Names are stored in separated table. Thank you.



  #3  
Old February 17th, 2006, 12:55 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query with question, where you choose from values based on tab

Hmm I am probably too unexperienced to understand this, but somehow i feel it
is not exactly what I want. I will try to explain it in details once more.

Table1
- name
- surname
- ID name

Table 2
- ID order
- date of order

Table 3
- list of food
-date of menu

Each day, you are offered by 3 different type of food, and you can choose
one to order it. So you can get a list showing:

Name, surname, day, ordered food

Now, I want to see what ordered person A each day, but I want to select name
of person after I call query - so i dont want write his name into pop-up
window (i want to choose him from list of names).









"Arvin Meyer [MVP]" wrote:

Enclosed the question in square brackets in the criteria box of the column
you want. Like:

SELECT *
FROM Table1
INNER JOIN Table2 ON Table1.FirstName = Table2.FirstName
WHERE (((Table2.FirstName)=[Enter a name to find]));
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

"This is display name " This is display name
...
I want to make query, where it ask for value (name) and then uses this

value
in query itself. Names are stored in separated table. Thank you.




  #4  
Old February 20th, 2006, 03:13 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query with question, where you choose from values based on tab

To do that properly, you would always use a form bound to the query, not the
query itself. If that's the case have your query refer to the combobox on
the form. The criteria box would then look like:

[Forms]![YourFormName]![YourComboName]
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

"Chanis" wrote in message
...
Hmm I am probably too unexperienced to understand this, but somehow i feel

it
is not exactly what I want. I will try to explain it in details once more.

Table1
- name
- surname
- ID name

Table 2
- ID order
- date of order

Table 3
- list of food
-date of menu

Each day, you are offered by 3 different type of food, and you can choose
one to order it. So you can get a list showing:

Name, surname, day, ordered food

Now, I want to see what ordered person A each day, but I want to select

name
of person after I call query - so i dont want write his name into pop-up
window (i want to choose him from list of names).









"Arvin Meyer [MVP]" wrote:

Enclosed the question in square brackets in the criteria box of the

column
you want. Like:

SELECT *
FROM Table1
INNER JOIN Table2 ON Table1.FirstName = Table2.FirstName
WHERE (((Table2.FirstName)=[Enter a name to find]));
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

"This is display name " This is display name
...
I want to make query, where it ask for value (name) and then uses this

value
in query itself. Names are stored in separated table. Thank you.






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access combo box-show name, not ID, in table? write on New Users 30 April 30th, 2005 09:11 PM
Table Design A. Williams Database Design 3 April 29th, 2005 07:02 PM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Union Query Not Returning A Value Jeff G Running & Setting Up Queries 2 October 19th, 2004 05:47 PM
Big number gives error! Sara Mellen Running & Setting Up Queries 8 October 11th, 2004 02:48 AM


All times are GMT +1. The time now is 09:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.