I would like to know how to do a search in a text box on Form X that closes Form X and opens Form Y and looks for the information in Y.
The search works perfectly when preformed while on Form Y. The search box is identical on both X and Y, its just getting X to point at Y when executing this command. -
Dim strFilter As String
-
strFilter = ""
-
If IsNull(Me!fnSRH) Then
-
strFilter = strFilter
-
Else
-
If strFilter = "" Then
-
strFilter = strFilter & "FullName Like '*" & Me!fnSRH & "*'"
-
Else
-
strFilter = strFilter & " AND FullName Like '*" & Me!fnSRH & "*'"
-
-
End If
-
End If
-
-
Me.Filter = strFilter
-
Me.FilterOn = True
-
Me!fnSRH = Null
-
1 1196
Not 100% certain what you are trying to do, but this may help.
At the end of your code you say me.filter=strFilter. I assume you want this on Form X.
so try this. -
DoCmd.OpenForm "formy", , , , , , strFilter
-
-
and then in FormY OnOpen event -
DoCmd.Close acForm, "FormX"
-
me.filter=openargs
-
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
|
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
|
by: Bob Alston |
last post by:
On a form I developed, I want to do some cross-field dependencies. If
field1 = "xxx" then field2 must be "yyyy" and so forth. Apparently I
cannot do that in field properties via the validation as...
|
by: Web Science |
last post by:
Site and Features: http://www.eigensearch.com
Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
|
by: Alan Silver |
last post by:
Hello,
I would like to add a search text box to the master page, so that it
appears on every page of the site. I then want the button next to the
search box to do a cross page post to the search...
|
by: permanent.tourist |
last post by:
I'm having a hell of a job getting this to work in Safari: the only
thing I can think of is that one can't use reload() across to another
frame for security reasons. Does anyone have a concrete...
|
by: steve.craver |
last post by:
I am working with a multi-field search form which, when the form is
submitted, queries a database and returns the results into a paginated
GridView object. The site is being developed with master...
|
by: Rancid Buttchutney |
last post by:
I've tried searching the web but I've had little success finding a
cross-browser(IE, Firefox and Opera anyway) implementation of a
restricted text INPUT that works in realtime before a character...
|
by: deshg |
last post by:
Hey everyone,
I am a php programmer originally and am just helping a friend of mine update their website that they paid a designer (well that's what he called himself!) to do ages ago. I have...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |