473,698 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1690
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****@crossla ndtankers.comwr ote in message
news:11******** **************@ q69g2000hsb.goo glegroups.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...@ntlw orld.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...@crossla ndtankers.comwr ote in message

news:11******** **************@ q69g2000hsb.goo glegroups.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
2941
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 Cline: http://www.15seconds.com/issue/981216.htm
1
4747
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 code behind the OnOpen Event Procedure of the report structured correctly. Anyone's assistance will be appreciated, although I would like to stay on the same track. Here is what I have done: 1. Created a new vendor query (qryVendorRpt) with...
3
24031
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 tables in the database where the code resides. If we move the database with the data tables to a new directory, the links are no longer valid. I tried to update the links by changing the Connect property and refreshing: Set td = db.TableDefs(0)...
1
2097
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 like to have the search from data displayed in a form. The structure that I have for this was take from the Asset Manger from MS. Anyway I open a report that in turn opens up a search form that allow me to select data. Then you continue by...
1
7978
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 values up from a table called NewMarkup. It appears in the dialog box with a percent format. However, when I try to call that value in my query it shows it as a decimal.
1
4009
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 live databases on the network. Is there a way, via code, when I get back in-house from being on the road to click a button, and select the backends I want to link to? I would want to delete all the current links and link to the "live"
0
375
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 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...
2
1200
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 its source. Now when the user enters an IDA value thats not in the list of the combobox I want the user to be able to choose whether they add the new IDA into the Database or try entering another IDA. I have the following code in the...
4
1395
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 box. When she hit the exit button of a search form, this dialog box would come up sometimes. There doesnt appear to be any consistency in the search criteria or actions taken on the form that cause this message to come up, and I cant get it to come up...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7728
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.