473,756 Members | 6,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I select (highlight) a record in a datasheet using VBA?

This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03
Nov 12 '05
19 10951
Test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #11
Test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #12
Test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #13
test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #14
Test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #15
Test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:B9******** ********@news04 .bloor.is.net.c able.rogers.com ...
I want to stop spam: I want my return address to be:
ba************* ****@NOSPAMroge rs.com

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.
Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #16
This is what groups like alt.test are for.

And how many times do you have to test?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:dk******** *********@news0 4.bloor.is.net. cable.rogers.co m...
Test
"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.
Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03

Nov 12 '05 #17
Test

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03
Nov 12 '05 #18
Barry,

Making progress yet ?

Arno R

"Barry Edmund Wright" <ba************ *****@rogers.co m> schreef in bericht
news:5L******** **********@news 04.bloor.is.net .cable.rogers.c om...
Test

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:r0******** **********@news 04.bloor.is.net .cable.rogers.c om...
Testing to see what my email address looks like - for antispam reasons.

"Barry Edmund Wright" <ba************ *****@rogers.co m> wrote in message
news:sX******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
This simple stupid thing has me stumped!

The cursor is on a record in a datasheet. How do I select that record
(highlight) like I would if I clicked on the Record Selector using VBA.

Regards.
Barry
---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is

certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/03

Nov 12 '05 #19
On Sun, 23 Nov 2003 19:19:29 GMT in comp.databases. ms-access, "Barry
Edmund Wright" <ba************ *****@rogers.co m> wrote:
Test


Failed: alt.test thataway --->

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
15851
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? This will give the effect of a bar moving up & down. BTW, all fields are locked so this form is View-Only & not editable. Thx & Best Rgds, Prakash.
3
14554
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
1
1990
by: Not Me | last post by:
Hey, In our database, we have implemented auditing simply by holding a copy of each row of the specific table at any time that data is updated. This gives us a long list of full records, often with only one change between them. Not sure if there's a better way to do this, but we'd like to somehow highlight whichever record was changed by comparing each row with the next (in date order).
2
8625
by: Steve K | last post by:
Firstly, how the heck does this guy do it? Writing reams of (awesome) code, debugging, responding to Newsgroups etc., all while commanding the ridiculous price of FREE?!?!?! More power to him! I'm hoping to use the Highlight Current Row functionality from the FormatbyCriteriaSubClass database. My problem is that the highlight is not scrolling. Selection rows works like a charm but the highlight doesn't move when I scroll. I am using...
9
9069
by: DS | last post by:
Whenever you use a continous form each row represents a record. Does this record have a number? If so how do you access it. Right now I have a field using auto number. But if access generates its own number for that row I'd like to use that. Thanks DS
5
3488
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record the cursor was on in the datasheet at the time I executed the macro. So, the questions are: 1) In the macro, how to I get my hands on the record key or record data of the record the cursor was on in the datasheet at the time I executed the...
3
3088
lwwhite
by: lwwhite | last post by:
I've got a a datasheet subform that gets its data from a SELECT DISTINCT query. The data is not editable. When I remove the DISTINCT qualifier from the query, the data is editable, but of course I get a much longer record set. I understand why Access doesn't want to let the data be editable in this situation, but I'm hoping there is a way to circumvent this restriction. Thanks for any suggestions. (Access 2003)
0
6852
Merlin1857
by: Merlin1857 | last post by:
A thing I have been asked for on a number of occasions is the ability to highlight text after its been searched for in a record return page. The following does this perfectly. Use this function within your record return page : 'Highlight searched for text function Function Highlight(strText, strFind, strBefore, strAfter) Dim nPos Dim nLen
3
2234
by: Gord | last post by:
If I have a form open with a subform control on it in datasheet view that has its record source set to a query or a table, is it possible to determine which record the user has clicked into with VB? I don't mean the text box with which you can determine the field/column, but the record (row). I guess what I'm looking for would be the bookmark? (or some line numbering?) or whatever information would aid in determining unambiguously which...
0
9297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9904
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 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...
1
9884
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
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, 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...
1
7285
isladogs
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...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3828
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
2
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.