473,729 Members | 2,142 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 #1
19 10948
Runcommand acCmdSelectReco rd

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"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.

Nov 12 '05 #2
Thanks Allen.

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message
news:3f******** **************@ freenews.iinet. net.au...
Runcommand acCmdSelectReco rd

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"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.


---
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 #3
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
Nov 12 '05 #4
Let's try this again!

"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
Nov 12 '05 #5
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
Nov 12 '05 #6
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.541 / Virus Database: 335 - Release Date: 11/14/03
Nov 12 '05 #7
rkc

"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


Outlook Express right?

Tools - Accounts - News - Properties - Email Address


Nov 12 '05 #8
On Thu, 20 Nov 2003 14:25:37 GMT in comp.databases. ms-access, "Barry
Edmund Wright" <ba************ *****@rogers.co m> wrote:
I want to stop spam: I want my return address to be:
ba************ *****@NOSPAMrog ers.com


Too late Barry, your address has been posted, harvested and put into a
dozen or so mailing lists, this happened the very first time you
posted it. Expect some spam soon, it won't stop for years.

As you use OE, you'll feel right at home using Mozilla Thunderbird
(http://www.mozilla.org/products/thunderbird/), which has better spam
filtering, bit draconian at first but as 99% of my mail is spam it
works for me. I'd suggest moving junk to a junk folder at first until
it learns that some of your friends aren't junk senders (yes, that's
right, it learns, oh and it puts some of your friends emails into junk
as well until it does).

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #9
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 #10

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

Similar topics

3
15850
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
14552
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
1989
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
8623
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
3486
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
3087
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
6848
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
8913
marktang
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...
0
8761
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
9280
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
9200
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
8144
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
6722
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
6016
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
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...
3
2162
bsmnconsultancy
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...

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.