473,320 Members | 2,111 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,320 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 1669
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.