473,473 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form navigation

4 New Member
I am in a form (frmFacilityDetail_new) and I want to call another form (frmBSAList). This (frmBSAList) has parameters in the query because of search txt boxes.

When I do a double click on a field from (frmFacilityDetail_new) which opens the (frmBSAList)form, I get three messages which has to do with the search txt boxes on the form (frmBSAList) that I am calling.

Forms!frmBSAList!txtyear
Forms!frmBSAList!txtfacility
Forms!frmBSAList!txtcity

When I click okay on these three messages the form finally opens.

I don't want to get these messages so how do I fix it?
Jan 7 '11 #1
2 1508
Lysander
344 Recognized Expert Contributor
Instead of using a parameters in the query for frmBSAList, call it with a filter.

Of the top of my head, this would be

docmd.openform "frmBSAList",,,"txtYear='" & txtYear & "' AND txtFacility='" & txtFacility & "' AND etc

The txtYear inside the "" should be the fieldname in the query, the '" & txtYear & "' should be the control name on frmFacilityDetail
Jan 7 '11 #2
malcolmk
79 New Member
[forms]![frmbsalist].[controls]![txtyear].[value]
Insert that in the criteria section of your query, plus entries for txtfacility and txtcity and then you just have to be sure that the text boxes on form bsalist have something in them before calling the query.
Jan 7 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Robin | last post by:
H I am having some problems with form creation & navigation in .NET. I have a sub main that calls my first form (login) using the application.run() method. If the validations are correct I wish...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
2
by: Joshua Ammann | last post by:
How do you change what row is highlighted in a listbox (so that it highlights the current record you are viewing in the form) when you use the built-in navagation buttons (or any method other than...
3
by: cannen | last post by:
This is a repost as I am down to the last hair on my head. I am using a listbox on a tab control on my mainform that has alisting of all records associated with form main record. when I select...
1
by: Rigs | last post by:
Hi, I'm an ASP .NET Newbie and I'm hoping some can help me with some basic web form navigation. I have a web form with numerous text boxes for data entry. The text boxes also have some...
1
by: Galka | last post by:
Hello I have a form to enter names and some other personal information. When a name is entered, it is checked against existing records: maybe, such name was entered before? If yes, user is...
8
by: Martin | last post by:
I hope not, but, I think the answer to this question is "it can't be done". Northwind sample database. Orders form. Go to a new record. Select a customer in "Bill To:" Don't enter any...
1
by: RLC603 | last post by:
I have a form with subform which details documents within a contract and data elements within the documents. The form contains info. about the contract and one or several documents associated...
4
by: robert.waters | last post by:
Hello, I have a main form that is maximized when my application loads; this main form contains links to all other forms. I've had to specify the Popup property of these other forms, so that...
2
by: munkee | last post by:
I use the following code to add the number of records in to my custom navigation within my access database. A simple "Cost x of y" in my sub form that allows me to add costs to a particular activity,...
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
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.