I am using a function that will insert a string of text at the current cursor position in a memo field; on a Form; when a specified key combination is pressed. The text string insertion works properly. As a part of the text string that gets inserted, I would also like to include the results of a DLookup Function, which will include specific information from the form. Have verified that the DLookup returns the correct values. Am having no success with the procedure involved to include the DLookup within the text string.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
DLookup results included within a text string (97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » DLookup results included within a text string (97)
- This topic has 3 replies, 3 voices, and was last updated 14 years, 1 month ago.
Viewing 2 reply threadsAuthorReplies-
WBell
AskWoody_MVPApril 21, 2011 at 6:29 pm #1276827I’m not sure I understand what you are trying to do with the DLookup – the DLookup() function is used to return a specific field in a table or query. It sounds like you are trying to get the value from a tex box on the form. Does that text box have a DLookup() as it’s data source? If so you should be able to simply concatenate that to the text string – but you will need to use VBA to do that, and a macro to detect the predetermined key combination. Not sure that helps – if not post some additional details and we will do our best to help.
-
WSjohnhutchison
AskWoody Lounger -
WSRonM
AskWoody LoungerApril 21, 2011 at 10:55 pm #1276840Your sample helped to show the proper convention of defining strings in combination with and correct use of the & and DLookup (that was my major snag). The insert at cursor now works exactly as I had envisioned. For me, a picture is worth a thousand words. Thank you very much for your help.
Ron
Viewing 2 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
-
Android 15 and IPV6
by
Win7and10
40 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
6 hours, 51 minutes ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
9 hours, 32 minutes ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 hours, 7 minutes ago -
Windows Update orchestration platform to update all software
by
Alex5723
16 hours, 52 minutes ago -
May preview updates
by
Susan Bradley
4 hours, 15 minutes ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
6 hours, 26 minutes ago -
Just got this pop-up page while browsing
by
Alex5723
9 hours, 3 minutes ago -
KB5058379 / KB 5061768 Failures
by
crown
6 hours, 8 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
3 hours, 17 minutes ago -
At last – installation of 24H2
by
Botswana12
1 day, 8 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
3 hours, 29 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
1 day, 20 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 13 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
2 days, 9 hours ago -
Another test post
by
gtd12345
2 days, 10 hours ago -
Connect to someone else computer
by
wadeer
2 days, 4 hours ago -
Limit on User names?
by
CWBillow
2 days, 7 hours ago -
Choose the right apps for traveling
by
Peter Deegan
1 day, 21 hours ago -
BitLocker rears its head
by
Susan Bradley
1 day, 5 hours ago -
Who are you? (2025 edition)
by
Will Fastie
1 day, 4 hours ago -
AskWoody at the computer museum, round two
by
Will Fastie
1 day, 23 hours ago -
A smarter, simpler Firefox address bar
by
Alex5723
2 days, 20 hours ago -
Woody
by
Scott
3 days, 5 hours ago -
24H2 has suppressed my favoured spider
by
Davidhs
1 day, 5 hours ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
3 days, 20 hours ago -
MS Office 365 Home on MAC
by
MickIver
3 days, 13 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
4 days, 10 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
1 day, 4 hours ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
5 days, 5 hours 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.