473,239 Members | 1,583 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,239 software developers and data experts.

How Do I highlight a string and get the focus into a record on my form

222 100+
Please help me

Using access 2003

I do have a form (continuous) that expand for me all products in a table name "[products]

I made a [textbox] in this form and it is unbounded

What i need is a botton that on click i want to find any part of the field where the [textbox]= [fieldname]---> get the focus on it and highlight it

I'm using this code that i found on this website

Application.Echo False
Me![fieldname].SetFocus
DoCmd.FindRecord textbox
Application.Echo True


this code works if the form is set to single form ..isn't wroking on the continuous form is there any other method??
Aug 21 '07 #1
2 1636
JKing
1,206 Expert 1GB
Hi, I'm a little confused.

Do you want the user to be able type something into the textbox and find a match for any field on the form or a specific field?

Once found what exactly do you want done? Do you want the entire row selected? Or just have the record selector pointing to the record?
Aug 23 '07 #2
wassimdaccache
222 100+
Yes I want to highlight the string that i'm searching and has the focus on the record .... any idea about that ...


It is the same of the access search (using any part of the field)...

Am i able to see the code of the search that access use or there is another method...



thank you for ur reply ....
Aug 23 '07 #3

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

Similar topics

5
by: nboutelier | last post by:
Scenario: you enter "foo bar" into a text field... Is it possible through javascript to select/highlight just "foo"? formObject.select() selects all. I need to select only part of the string....
3
by: Pete Wilson | last post by:
How can I highlight the <input type="submit"> object that I want to highlight? 1. In my form, the user enters his ID. He sees two submit "buttons," left labeled Cancel, the right labeled Signup....
3
by: Simon Rowe | last post by:
Probably really simple but I cant work it out... I have a list box on a form with a few records in. When I open the form the first record is sort of highlight with a dashed box, when I cursor...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
2
by: parm | last post by:
How do I highlight text in my first (tabindex = 1) asp control (eg: textbox) on the webform on page load. If I try to set focus using javascript then I get script error "Cannot move focus to...
0
by: Franky | last post by:
I have two Mdi Child forms open. One has the title bar highlighted and the other does not. They each contain a control that is docked fill If I click the control in the one not highlighted...
5
Scott Price
by: Scott Price | last post by:
I'm not quite ready to give up on this yet... Using MS Access 2003, WinXP SP2. I have a listbox that I'm trying to get to highlight (select) a specific record using the GotFocus event (the...
4
by: Andrew Poulos | last post by:
As a user tabs about a web page I want to highlight with a, say, 2 pixel solid yellow border the anchor that currently has focus. When the anchor loses focus the border is removed. The anchors...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.