473,396 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using a dialog box from a query in a form

I have created a dialog box in a query that will prompt the person to
input the parameters they want to stipulate the query to search on...
I have created a form based on this query, everthing works well and
when you open the form it prompts you to enter your parameters,.
But my question is how do yo get that dialog box prompt to appear
again without having to close and open the form each time you want to
perfom a new seacrh based on new criteria?
Any help would be appreciated...

Thanks

Jun 28 '07 #1
2 1671
I would have thought that you could create a command button on the form. In
the 'On Click' event of the command button, put the following code:

DoCmd.Requery

This should requery the source of the form which will call your parameter
query.

Hope this helps,

Mark

<dy****@crosslandtankers.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
>I have created a dialog box in a query that will prompt the person to
input the parameters they want to stipulate the query to search on...
I have created a form based on this query, everthing works well and
when you open the form it prompts you to enter your parameters,.
But my question is how do yo get that dialog box prompt to appear
again without having to close and open the form each time you want to
perfom a new seacrh based on new criteria?
Any help would be appreciated...

Thanks

Jun 28 '07 #2
On 28 Jun, 19:27, "Mark" <mreed1...@ntlworld.comwrote:
I would have thought that you could create a command button on the form. In
the 'On Click' event of the command button, put the following code:

DoCmd.Requery

This should requery the source of the form which will call your parameter
query.

Hope this helps,

Mark

<dym...@crosslandtankers.comwrote in message

news:11**********************@q69g2000hsb.googlegr oups.com...
I have created a dialog box in a query that will prompt the person to
input the parameters they want to stipulate the query to search on...
I have created a form based on this query, everthing works well and
when you open the form it prompts you to enter your parameters,.
But my question is how do yo get that dialog box prompt to appear
again without having to close and open the form each time you want to
perfom a new seacrh based on new criteria?
Any help would be appreciated...
Thanks- Hide quoted text -

- Show quoted text -
Thanks Mark, took me a moment on how to work this properly but it
works a treat...

Thanks very much

Jun 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joris Kempen | last post by:
Hi people, I know that the question has come around sometimes: How to open an Access Report using ASP and export it to for example RTF. I'm trying to implement the first method of David...
1
by: Dalan | last post by:
I designed a dialog box with a combo to select individual vendors from a form and its related data for print ouput. Though the dialog box seems to work okay, I apparently do not have the filtering...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
1
by: N. Graves | last post by:
Hi, I want to have a Search Dialog box that has several text box and fields to build a search and display the results in a form. I can do everything that I need to if I us a report but I would...
1
by: Terencetrent | last post by:
I am trying to format a query expression drawn from a dialog box as percent. The original statement to get the value for the query is as follows: New%markup: !! The dialog box looks the...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
0
by: dympna | last post by:
I have created a dialog box in a query that will prompt the person to input the parameters they want to stipulate the query to search on... I have created a form based on this query, everthing...
2
by: Garx | last post by:
Hi Guys, This is my first post so bear with me :) I am running Access 2003 and am still feeling my way around it. I have a form (FORM_IDL) that uses a combobox (cboIDA) which uses a query as...
4
by: jaegertw2 | last post by:
Hey guys, I have a weird one. My database has about 25 users, and today one of the users came to me and informed me she was getting an error message, which turned out to be query parameter dialog...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.