Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2004, 10:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 126
Thanks: 5
Thanked 0 Times in 0 Posts
Default Criteria in Query

Good morning all,
I have a make-table query and am using the expression builder to set the criteria. I want it to look at the values entered in another table to determine what gets put into the new table. What I have is:
Code:
Between [DateTable].[StartDate] And [DateTable]![EndDate]
But it keeps asking me to enter "[DateTable].[StartDate]" and "[DateTable]![EndDate]". How can I make it go to the table to get this information?
There is only one record and will only ever be one record in the table and those are the only two fields. I have it storing the information in a table, because several different things are using these two dates and it is quicker and easier for the user to just have to enter it once and it store it in a table rather than entering the same information on several screens.

Thanks for the help!

Regards,
Laura

The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!
__________________
Regards,
Laura

The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!
 
Old June 23rd, 2004, 11:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 126
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Never mind...It dawned on me after I had already posted the topic.
Here is what I did:
Code:
Between (Select StartDate From DateTable) And (Select EndDate from DateTable)
Thanks anyways!

Regards,
Laura

The only thing standing between you and your goal is doubt. Quit doubting yourself and you'll be able to accomplish anything!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Expressions in query criteria thedom Access 2 December 13th, 2007 04:33 PM
ListBox as Query criteria? PubliusHJM Access 8 August 28th, 2007 06:14 AM
Conditional criteria in query dfuas BOOK: Beginning Access VBA 0 January 15th, 2006 03:19 PM
Query Criteria Clive Astley Access 4 March 25th, 2004 03:27 AM
Append Query Criteria Ben Access 1 January 21st, 2004 07:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.