Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: user input

Started 1 month, 2 weeks ago by fanfan2
On the form, I would like to have the user to input a date, then it opens a query base on the date entered. What is the best way to do it? Thanks in advance.
Site: Access World Forums  Access World Forums - site profile
Forum: Forms  Forms - forum profile
Total authors: 2 authors
Total thread posts: 8 posts
Thread activity: no new posts during last week
Domain info for: access-programmers.co.uk

Other posts in this thread:

John Big Booty replied 1 month, 2 weeks ago
You could have a button that opens a pop up form that uses your query as a data source. Your query would use the following as Criteria for date; Code: Forms!FRM_Name!DateFieldName Where FRM_Name! is the name of the referring Form

fanfan2 replied 1 month, 2 weeks ago
Thanks. But where does the user input the date?

John Big Booty replied 1 month, 2 weeks ago
I had assumed that you had a form on which the button and the date, you wanted to query, resided. If this not the case simply put the following in the Criteria under date in your query; Code: [Please enter a search date] or what ever text you wish to appear as a prompt.

fanfan2 replied 1 month, 2 weeks ago
Sorry I'm new on this and didn't quite get it. If on the query I put the code [enter the date] under creteria, should I make a text box on the form with the same name "enter the date"? Or how can the query find the date user entered? thanks.

John Big Booty replied 1 month, 2 weeks ago
OK step by Step; Create your query so that it is selecting the data you want. In the criteria section in the Date column, put the code I gave you previously. Save the query. Now run the query (click the apostrophe "!") The next thing that will happen is a small dialogue box with appear with the text you put in the square brackets. Click OK and bingo job done. As an aside do not use ...

fanfan2 replied 1 month, 2 weeks ago
works perfect! thank you so much.

John Big Booty replied 1 month, 2 weeks ago
Great glad you got it working Doh!! Quote: Originally Posted by John Big Booty OK step by Step; ........ 4. Now run the query (click the apostrophe "!") ...... That's no apostrophe, that's an Exclamation mark

 

Top contributing authors

Name
Posts
fanfan2
4
user's latest post:
user input
Published (2009-11-10 13:08:00)
works perfect! thank you so much.
John Big Booty
4
user's latest post:
user input
Published (2009-11-10 13:42:00)
Great glad you got it working Doh!! Quote: Originally Posted by John Big Booty OK step by Step; ........ 4. Now run the query (click the apostrophe "!") ...... That's no apostrophe, that's an Exclamation mark

Related threads on "Access World Forums":

Related threads on other sites:

Thread profile page for "user input" on http://www.access-programmers.co.uk. This report page is a snippet summary view from a single thread "user input", located on the Message Board at http://www.access-programmers.co.uk. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity