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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |