Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query for a particular date in tables

Status
Not open for further replies.

nosbig

Technical User
Aug 1, 2000
2
US
I'm designing my first Access 97 database and my customer needs to be able to retrieve item(s) that have a particular date entered. This data can be in any one of 4 tables I have established. For example, he needs to be able to find out what brief was presented to someone on 9/13/98. He is unfamiliar with Access and I'm trying to make this as user friendly as possible so he only has to enter the applicable date and Access will give him the information he needs.
 
Could you give us some more detail?&nbsp;&nbsp;What are the four tables?&nbsp;&nbsp;Are they related in any way?&nbsp;&nbsp;Is the user going to know, in some manner, which table should be searched?<br><br>My first thought would be a form with a frame and four option buttons to allow the user to check the table that should be searched.&nbsp;&nbsp;The form would also have a text box which would be used to enter the date.&nbsp;&nbsp;Finally, the form would have a command button to retrieve the records.&nbsp;&nbsp;Behind the command button, you would write code to create a query &quot;on the fly&quot; and run the query and present the data in whatever form you wish.<br><br>Does this sound like what you are looking for?&nbsp;&nbsp;None of this is particularly difficult, with a bit of help.<br><br> <p>Kathryn<br><a href=mailto: > </a><br><a href= > </a><br>
 
My four tables are not related to each other but they have many common fields between them. I set up indiv tables due to tracking/data entry differences between them and I did not want to set up one large table. Each of these four tables IS related to a location table that has been established though.&nbsp;&nbsp;It does sound as though what you've suggested might work. I'm also going to try setting up a parameter query that will prompt him for criteria each time it's run.
 
In your query first decide what table the date is coming from.<br>Then simply you can create prompt to ask any dates you want.<br><br><font color=blue>By adding </font><br><b><font color=red>[Enter the date in mm/dd/yyyy format]</font></B><br><font color=blue>To the criteria.</font><br><br>If you need any more info or an example let me know.<br>Good Luck. <img src=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top