A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

find button to look in specific place



 
 
Thread Tools Display Modes
  #1  
Old September 12th, 2005, 07:41 AM
Database User
external usenet poster
 
Posts: n/a
Default find button to look in specific place

Is there a code where i can set the find button that on click it
automatically looks in the Name field and is always set to any part of field?
  #2  
Old September 12th, 2005, 06:18 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Sun, 11 Sep 2005 23:41:04 -0700, "Database User"
wrote:

Is there a code where i can set the find button that on click it
automatically looks in the Name field and is always set to any part of field?


Program your own Find button instead!

Use it to set the Form's Filter property:

Me.Filter = "[Name] LIKE *" & Me!txtFindName & "*"
Me.FilterOn = True

where txtFindName is the name of an unbound textbox on your form.

John W. Vinson[MVP]

  #3  
Old October 8th, 2005, 01:21 PM
NC_Sue
external usenet poster
 
Posts: n/a
Default

Hi John -
I hate to be dense, but I don't know how/where to enter the code you
suggested.

What I had hoped to do was to insert the good ol' binoculars on my form so
that, say, if I had my cursor in a certain field, I could enter the name...
or number... or whatever.... I was looking for & jump there. A find/replace
button right on the field.
Can you suggest how to do that?

--
Thanks for your time!


"John Vinson" wrote:

On Sun, 11 Sep 2005 23:41:04 -0700, "Database User"
wrote:

Is there a code where i can set the find button that on click it
automatically looks in the Name field and is always set to any part of field?


Program your own Find button instead!

Use it to set the Form's Filter property:

Me.Filter = "[Name] LIKE *" & Me!txtFindName & "*"
Me.FilterOn = True

where txtFindName is the name of an unbound textbox on your form.

John W. Vinson[MVP]


  #4  
Old October 10th, 2005, 05:38 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Sat, 8 Oct 2005 05:21:01 -0700, NC_Sue
wrote:

Hi John -
I hate to be dense, but I don't know how/where to enter the code you
suggested.


In VBA code in the Click event of your new search button.

What I had hoped to do was to insert the good ol' binoculars on my form so
that, say, if I had my cursor in a certain field, I could enter the name...
or number... or whatever.... I was looking for & jump there. A find/replace
button right on the field.
Can you suggest how to do that?


You may want to use the very capable "Query By Form" technique. Click
the Filter by Form icon on the toolbar.

John W. Vinson[MVP]
  #5  
Old November 7th, 2005, 09:09 AM
Database User
external usenet poster
 
Posts: n/a
Default find button to look in specific place

Thanks for that answer - but i think i would prefer to look in the whole form
- the main form (because there are subforms attached) and any part of field
so what do i do - replace the name of the form with name or is thre more
changes i have to make?

Me.Filter = "[Name] LIKE *" & Me!txtFindName & "*"
Me.FilterOn = True


"John Vinson" wrote:

On Sun, 11 Sep 2005 23:41:04 -0700, "Database User"
wrote:

Is there a code where i can set the find button that on click it
automatically looks in the Name field and is always set to any part of field?


Program your own Find button instead!

Use it to set the Form's Filter property:

Me.Filter = "[Name] LIKE *" & Me!txtFindName & "*"
Me.FilterOn = True

where txtFindName is the name of an unbound textbox on your form.

John W. Vinson[MVP]


  #6  
Old November 7th, 2005, 09:10 AM
Database User
external usenet poster
 
Posts: n/a
Default find button to look in specific place

Also i forgot to ask, will this code give me the little find menu like the
find button gives where i can do find next etc. Or is it setting a filter
that i have to remove afterwards- i dont want that!
Thanks

"John Vinson" wrote:

On Sat, 8 Oct 2005 05:21:01 -0700, NC_Sue
wrote:

Hi John -
I hate to be dense, but I don't know how/where to enter the code you
suggested.


In VBA code in the Click event of your new search button.

What I had hoped to do was to insert the good ol' binoculars on my form so
that, say, if I had my cursor in a certain field, I could enter the name...
or number... or whatever.... I was looking for & jump there. A find/replace
button right on the field.
Can you suggest how to do that?


You may want to use the very capable "Query By Form" technique. Click
the Filter by Form icon on the toolbar.

John W. Vinson[MVP]

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Specific Record using 2 controls timsken Using Forms 3 August 2nd, 2005 03:35 AM
"More Advanced" button in Advanced Find ofra General Discussion 2 June 21st, 2005 07:36 AM
can't find map button in Excel in Office Standard Edition 2003 Nitsirk Worksheet Functions 3 March 22nd, 2005 02:20 AM
Why can't I find a place that works to download ActiveX Controls? Mike R General Discussions 1 February 23rd, 2005 07:47 AM
Hide or show Control Button on Form in Access 97 Pete Sperling Using Forms 8 July 13th, 2004 04:13 PM


All times are GMT +1. The time now is 03:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.