I have a little search routine going whereby the user types in some text and
clicks a button on the main form.
I then see if that text exists in a record on the subform. I get a match,
grab the record id and am now trying to automatically highlight that record
in the subform to show the user they got a hit.
How can I select that record and then perhaps move the focus into a specific
textbox?
I'm trying this a number of ways and Access isn't cooperating.
thanks
Martin 4 6151
On Aug 30, 8:29 am, "Deano" <de...@mailinat or.comwrote:
I have a little search routine going whereby the user types in some text and
clicks a button on the main form.
I then see if that text exists in a record on the subform. I get a match,
grab the record id and am now trying to automatically highlight that record
in the subform to show the user they got a hit.
How can I select that record and then perhaps move the focus into a specific
textbox?
I'm trying this a number of ways and Access isn't cooperating.
thanks
Martin
It is possible, but it isn't easy. Look at this link: http://www.mvps.org/access/forms/frm0047.htm
"OldPro" <rr*******@sbcg lobal.netwrote in message
news:11******** **************@ 19g2000hsx.goog legroups.com...
On Aug 30, 8:29 am, "Deano" <de...@mailinat or.comwrote:
I have a little search routine going whereby the user types in some text
and
clicks a button on the main form.
I then see if that text exists in a record on the subform. I get a
match,
grab the record id and am now trying to automatically highlight that
record
in the subform to show the user they got a hit.
How can I select that record and then perhaps move the focus into a
specific
textbox?
I'm trying this a number of ways and Access isn't cooperating.
thanks
Martin
It is possible, but it isn't easy. Look at this link: http://www.mvps.org/access/forms/frm0047.htm
I think that just highlights the current record selected by the user. I
want the program to select the record without any user intervention.
Deano wrote:
I have a little search routine going whereby the user types in some text and
clicks a button on the main form.
I then see if that text exists in a record on the subform. I get a match,
grab the record id and am now trying to automatically highlight that record
in the subform to show the user they got a hit.
How can I select that record and then perhaps move the focus into a specific
textbox?
I'm trying this a number of ways and Access isn't cooperating.
thanks
Martin
I have, on most continuous form, a text box above each column that the
users can enter text, numbers, dates to search on. Uses the F3 key to
find the next one. It's gotten pretty generic for me to create such a
form. But the basic concept is to find the rec and move to it. Let's
say the continuus form's key is called ID. You search the LastName
field for Smith.
Dim rst As Recordset
set rst = Forms!MainForm! Subform.Records etclone
rst.findfirst "LastName = 'Smith'"
If not rst.Eof then
Forms!MainForm! Subform.Bookmar k = rst.Bookmark
Else
msgbox "Not found, try again."
Endif
rst.close
set rst = Nothing
On Aug 30, 9:09 am, "Deano" <de...@mailinat or.comwrote:
"OldPro" <rrossk...@sbcg lobal.netwrote in message
news:11******** **************@ 19g2000hsx.goog legroups.com...
On Aug 30, 8:29 am, "Deano" <de...@mailinat or.comwrote:
I have a little search routine going whereby the user types in some text
and
clicks a button on the main form.
I then see if that text exists in a record on the subform. I get a
match,
grab the record id and am now trying to automatically highlight that
record
in the subform to show the user they got a hit.
How can I select that record and then perhaps move the focus into a
specific
textbox?
I'm trying this a number of ways and Access isn't cooperating.
thanks
Martin
It is possible, but it isn't easy. Look at this link: http://www.mvps.org/access/forms/frm0047.htm
I think that just highlights the current record selected by the user. I
want the program to select the record without any user intervention.- Hide quoted text -
- Show quoted text -
It's the same basic idea, except that instead of comparing the current
record to the selected record in the onCurrent event, you compare the
current record to the record you want hilited. It is possible to do a
multi-select this way too. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: William Wisnieski |
last post by:
Hello Again,
I'm really stuck on this one.....so I'm going to try a different approach to
this problem.
I have a query by form that returns a record set in a datasheet. The user
double clicks on a row and a main form (pop up) opens bound to a table with
a continuous subform bound to another table.
On the main form is a field called . It is vital that this is
|
by: Mark |
last post by:
Hi there, I have a subform, set as a continuous form.
When a user selects a particular record in that subform, how can I make that
particular record stand out (color or font change, size, etc) from
the other records in the list?
Thank you in advance,
Mark
|
by: Karl Roes |
last post by:
Hi All,
I would like some advice on Next / Previous record buttons.
I have a main form for the client, and a continuous subform listing
client transactions. If I open one of these transactions ( dblclick )
in say 'frmtransaction', I would like to scroll forward and backward
through the transactions as they appear on the continuous subform
without actually having to close 'frmtransaction' and go back to the
subform.
|
by: misscrf |
last post by:
I am currently working on a database, in 3rd normal form, which is for
candidates who apply for a job with the law firm that I
workd for. My issue is with good form design.
I have a main form. Then I have 3 pages on a tab control ( 4 if the
type of candidate validates that is is to be shown) Each page
has a subform. The subforms can be either single or continuous, I
think I am still deciding what I want to lock down this entry...
|
by: GSteven |
last post by:
(as formerly posted to microsoft.public.access.forms with no result)
I've created a continuous form which is based on a straightforward table
(ex - customers - 100 records). On the form there is a checkbox with a
control source named "MARK" (boolean) from customer table. I can check and
uncheck individual records fine. Then I created 2 command buttons named
"Select All" and "Deselect All". The Onclick property of these buttons runs
code...
| |
by: Typehigh |
last post by:
I am a good programmer, but this one stumps me!
I have a form with a continuous subform. The continuous subform
contains records of data and may reach a depth of 1000's of entities.
I have created a search button on my form and it does its job quite
well. It presents the user with an inputbox, prompting for the string
to search. Then the code returns with a record number of the record
which contains the string.
Here's the problem. I...
|
by: kaeldowdy |
last post by:
This one is stumping me!
I have a Form/Subform arrangement. The main form is set as a Single
Form and the sub form is set as Continuous Forms.
On the Form_AfterUpdate event of the subform, I run some code that
affects the main form which forces focus *away* from the subform and
puts it to the main form.
I need to keep focus on the subform when the code in the
|
by: Simon |
last post by:
Dear reader,
How can I move the record pointer in a sub form.
The sub form is a datasheet type. Both forms have the same reference key.
How can I move the record pointer in the sub form to the key field as
specified in the main form.
|
by: Andrew |
last post by:
Hi all
A quick question which I've not been able to solve from trawling the
web.
Is it possible to have a control in the detail section of a form set
to a default view of "Continuous" which only appears on the last
record?
I'm thinking of having a form with a subform, and would like the
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |