473,396 Members | 1,714 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.

Cross form search

Kaosu
19
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.

Expand|Select|Wrap|Line Numbers
  1.     Dim strFilter As String
  2.     strFilter = ""
  3.     If IsNull(Me!fnSRH) Then
  4.         strFilter = strFilter
  5.     Else
  6.         If strFilter = "" Then
  7.             strFilter = strFilter & "FullName Like '*" & Me!fnSRH & "*'"
  8.         Else
  9.             strFilter = strFilter & " AND FullName Like '*" & Me!fnSRH & "*'"
  10.  
  11.     End If
  12.     End If
  13.  
  14.     Me.Filter = strFilter
  15.     Me.FilterOn = True
  16.     Me!fnSRH = Null
  17.  
Jun 5 '08 #1
1 1196
Lysander
344 Expert 100+
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.

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "formy", , , , , , strFilter
  2.  
  3.  
and then in FormY OnOpen event
Expand|Select|Wrap|Line Numbers
  1. DoCmd.Close acForm, "FormX"
  2. me.filter=openargs
  3.  
  4.  
Jun 5 '08 #2

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

Similar topics

0
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,...
0
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,...
1
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...
0
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,...
4
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...
9
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...
0
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...
1
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...
2
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...
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
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
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...
0
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,...

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.