I have a memo text box on a form. I want to be able to print selected text in the box to the default printer.
I would be grateful for some code. Many thanks
Mike
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Access (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Access (2000)
- This topic has 5 replies, 3 voices, and was last updated 20 years, 7 months ago.
AuthorTopicWSMikeTrotter
AskWoody LoungerSeptember 22, 2004 at 8:23 am #410230Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerSeptember 22, 2004 at 12:08 pm #879973Could you clarify the situation, please? It might help if you explain what you’re trying to accomplish with this. What is the purpose besides arbitrarily printing some text?
Are you talking about highlighting part of the text in the memo field and then printing only that selected text to the default printer? What mechanism were you planning to use to indicate that it should be printed? Are you thinking context menu selection or what?
-
WSMikeTrotter
AskWoody LoungerSeptember 22, 2004 at 4:17 pm #880133Thanks, Charlotte
I have this database for personal use. I have all sorts of contact info in it: Family, friends, Business , firms that service equipment at home etc.
I use the memo facility to record details, perhaps the cost of parts or the solution to an IT query etc. At present I have made several calls to Belkin support, details in the memo field . I would like to be able to highlight a particular part of the memo text and print it to the default printer. Its nothing elaborate, I would simply highlight that part of the text that I wished to print. I hadn’t thought of using the context menu: my approach might have been through a button’s on dblclick event. A context menu solution sounds much more elegant though. (Because its essentially for personal use, I try to get a simple solution first and then maybe refine it at a later stage. I know, the project should be fully planned before the code is written!)
You’ve helped me on several occasions in the past. Thank You
Mike -
WSMikeTrotter
AskWoody LoungerSeptember 22, 2004 at 4:17 pm #880134Thanks, Charlotte
I have this database for personal use. I have all sorts of contact info in it: Family, friends, Business , firms that service equipment at home etc.
I use the memo facility to record details, perhaps the cost of parts or the solution to an IT query etc. At present I have made several calls to Belkin support, details in the memo field . I would like to be able to highlight a particular part of the memo text and print it to the default printer. Its nothing elaborate, I would simply highlight that part of the text that I wished to print. I hadn’t thought of using the context menu: my approach might have been through a button’s on dblclick event. A context menu solution sounds much more elegant though. (Because its essentially for personal use, I try to get a simple solution first and then maybe refine it at a later stage. I know, the project should be fully planned before the code is written!)
You’ve helped me on several occasions in the past. Thank You
Mike -
WSFrancois
AskWoody LoungerSeptember 22, 2004 at 6:28 pm #880202In Attachment a quick and dirty sample of this.
It works as follow:
In the on lost focus event of the memo text field, I use code to copy the selected text in an unbound textbox on the form. If you want you can make this textbox invisible.
The I use a unbound report with a unbound textbox and in the on format event of the detail section I set the textbox the same as the unbound textbox on the form. -
WSFrancois
AskWoody LoungerSeptember 22, 2004 at 6:28 pm #880203In Attachment a quick and dirty sample of this.
It works as follow:
In the on lost focus event of the memo text field, I use code to copy the selected text in an unbound textbox on the form. If you want you can make this textbox invisible.
The I use a unbound report with a unbound textbox and in the on format event of the detail section I set the textbox the same as the unbound textbox on the form.
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
How can I install Skype on Windows 7? (Awaiting moderation)
by
Help
14 minutes ago -
Logitech MK850 Keyboard issues
by
Rush2112
3 hours, 15 minutes ago -
We live in a simulation
by
Alex5723
10 hours, 45 minutes ago -
Netplwiz not working
by
RetiredGeek
1 hour, 29 minutes ago -
Windows 11 24H2 is broadly available
by
Alex5723
23 hours, 13 minutes ago -
Microsoft is killing Authenticator
by
Alex5723
6 hours, 43 minutes ago -
Downloads folder location
by
CWBillow
1 day, 5 hours ago -
Remove a User from Login screen
by
CWBillow
1 hour, 15 minutes ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
20 hours, 45 minutes ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
20 hours, 48 minutes ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 1 hour ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
19 hours, 56 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 19 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
1 day, 9 hours ago -
Multiple Partitions?
by
CWBillow
1 day, 10 hours ago -
World Passkey Day 2025
by
Alex5723
2 days, 3 hours ago -
Add serial device in Windows 11
by
Theodore Dawson
2 days, 18 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
19 hours, 38 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
2 days, 23 hours ago -
Win11 24H4 Slow!
by
Bob Bible
2 days, 23 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
2 days, 20 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
3 days, 1 hour ago -
‘Minority Report’ coming to NYC
by
Alex5723
2 days, 22 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
3 days, 10 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
3 days, 9 hours ago -
How do I migrate Password Managers
by
Rush2112
2 days, 17 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
2 days, 19 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
3 days, 22 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
3 days, 20 hours ago -
Security fixes for Firefox
by
Susan Bradley
21 hours, 48 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.