-
WSPatricia W
AskWoody Loungerbgarth — If you look at post 639613 (sorry, Hans, you posted instructions on how to make this a link but w/ a quick search I can’t find it — I’ll look further, later) —
This post was Han’s in response to your post created in March of this year (07), with a similar question.Another thought — probably not a real “safe” one, is — I wonder what results would happen if you associated the old extension with the new program? I wouldn’t try that unless it was your last hope, because I have found it mildly difficult to unassociate.
Pat
-
WSPatricia W
AskWoody LoungerThank you! I know Access can be forgiving, but I have been burnt before in another language or two — so, now I avoid ’em! Thanks, Jezza.
Pat -
WSPatricia W
AskWoody LoungerThis is intriguing, because I have a couple of people who can’t click on their hyperlinks and get anything to happen, whereas if I do, they work. I probably have an earlier version of the reader than they do — because of your email, I’m checking with them.
thx
Pat -
WSPatricia W
AskWoody LoungerJust as a “pendantic” aside, and obviously not tripping you up here, but, I wonder if SQL is a reserved word, and something you might avoid from using as a variable?
thx
Pat -
WSPatricia W
AskWoody LoungerThank you, Hans! I so often just cut ‘n paste, and have used the better form before but just forget and revert to the sendkeys format. It’s nice to be praised by you, my hero!
Pat -
WSPatricia W
AskWoody LoungerBesides Han’s suggestion of the scrollbars, what I like to do, especially if the text boxes are small on a crowded form, is “double-click to zoom:”
Private Sub fSomeNotes_DblClick(Cancel As Integer)
SendKeys “+{F2}”
Cancel = True
End Sub
In conjunction to that, you can set your cursor so that be positioned at the beginning so that the zoom doesn’t select the whole field.
I _think_ my users like it!
thx
Pat -
WSPatricia W
AskWoody LoungerWell, you can do everything within Access, but you would have to include the Word library as a reference, in order to get all the Excel functions and run them while within Access. The project I was looking at for the code actually was entirely in Excel, and I got my recordset from a connection to a SQL server. Two other projects are merge files from Access, and neither actually involve a recordset, although I don’t see why one cant’ be sent. Both call a macro in the word merge document. In one I sent a SQL string — here is my call in my Access project: “appword.Application.Run (“GoMrg”), sqlStmt.” You could do it any number of ways.
thx -
WSPatricia W
AskWoody LoungerIt is in Excel. You can send — well, you know, I’ve done a couple of different things lately, and I don’t know if I actually passed the record set from Access to Excel as a parameter, but I know that an Excel function can receive a recordset, so I don’t see why not. Let me check what I did in a couple of instances, and I’ll return shortly …
thx
Other Pat -
WSPatricia W
AskWoody LoungerCan you send a DAO recordset to the Excel spreadsheet? If you do it that way, you can capture the right-most column by virtue of the recordset.fields.count, and then do the horrid RC referencing and formula pasting after that for summaries (which you can tell I’m not comfortable with, but did kludge together something that I would paste up to you if you wanted in addition to this). Here’s my code that just pastes a recordset sent from Access in the call to Excel. It first populates the column headers from the field names:
Dim icols As Integer
Rows(“2:2”).Select ‘and do formatting to this row for the headers, if you like
For icols = 0 To incomingSet.Fields.Count – 1
Cells(2, icols + 1).Value = incomingSet.Fields(icols).Name
Next
Range(“A3”).CopyFromRecordset incomingSet ‘voilathx
Other Pat -
WSPatricia W
AskWoody LoungerRachel, you might also take a look at a recent Access Watch newsletter by Helen Feddema, found of of Woody’s Lounge Main Portal. The number is “AW #9.09,” titled “Mail Merge in Access 2007.” It’s not specific to 2007, that is, I adapted the idea for my XP. I had already done a couple of merges (thanks to help from Hans, here, about the same “:=” syntax you needed) but found Helen’s recommendation to go to a text file to merge to the Word document to be a simpler, more flexible, and less trouble-bound. Check out that article if you have the time, I think you’ll find it helpful, even if you don’t use any of the code.
thx
Pat -
WSPatricia W
AskWoody LoungerTHANK YOU, HANS !
I’m embarassed to say that I removed the “:” when some earlier code didn’t work. I’m also embarassed to show what little I know about Excel VB, that I basically had a “new” and a “create.” Thank you so much! It worked perfectly.
Pat W. -
WSPatricia W
AskWoody LoungerThanks, Mark.
Yes, there is an index on that field, and that seems to be working pretty fast, but — I have another field that I am using and I am timing out on that. So, I second your sentiment about indexing!
Thanks for responding,
Pat -
WSPatricia W
AskWoody LoungerHans, hoping this will work for Rudi. The “environ()” used to return such useful information consistently, and probably still does but at one point, either after Windows 98 or Windows XP, it didn’t seem to work any more — not just in Access, but in a couple of other programs that were using something similar to the “environ()” function. In VB, we shifted over to that API call, the “getusername” (I think) which you and others have so kindly posted here at times. That’s been very dependable, whereas the “environ()” may have lost some of it’s “charm.”
Thanks for all you do, Hans.
Pat
-
WSPatricia W
AskWoody LoungerWe had a very similar problem. It turns out that the recordset that the form was based upon was being invoked up to four times by other operations that got triggered within the form. Also, there was some circular coding, where the “on activate” event was being called over and over. This poor coding didn’t seem to bite badly when the database was in ’97, but, as soon as we converted it up to XP, the problem became chronic.
The solution was to try to streamline the code, and issue record “saves” prior to bopping out to another form that used the same recordset.
thx
Pat -
WSPatricia W
AskWoody LoungerApril 4, 2006 at 10:34 pm in reply to: Recordset Not Updateable problem (Access 2K, Win 2KPro, SQL Server 2K) #1008255One thing that I’ve used just today, in fact: when I find that I have query permutations upon query permutations, and the query becomes (necessarily) un-updateable, there is one easy fix I’ve found: select the table that you want to update, and do a sub-select on one of your key fields to see if that key field exists withing the vastly permuted criteria query — well, this may not work if you’re working on the same data, but, give it a try. In other words, say I want to update a field in “Plain” table, look for “Plain.ID in (Select subPlainID from VastlyPermutedQuery)”
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

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
-
Awoke to a rebooted Mac (crashed?)
by
rebop2020
8 minutes ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 hour, 20 minutes ago -
False error message from eMClient (Awaiting moderation)
by
WSSebastian42
1 hour, 52 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
4 hours, 52 minutes ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
5 hours, 14 minutes ago -
Outdated Laptop
by
jdamkeene
10 hours, 18 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
15 hours, 43 minutes ago -
Another big Microsoft layoff
by
Charlie
15 hours, 23 minutes ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
6 hours, 20 minutes ago -
May 2025 updates are out
by
Susan Bradley
15 hours, 47 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
21 hours, 26 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
21 hours, 28 minutes ago -
Drivers suggested via Windows Update
by
Tex265
21 hours, 19 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
19 hours, 3 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
1 day, 4 hours ago -
Apple releases 18.5
by
Susan Bradley
22 hours, 44 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 day, 5 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
1 day, 6 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
13 hours, 38 minutes ago -
No HP software folders
by
fpefpe
1 day, 14 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
11 hours, 23 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 19 hours ago -
Copilot, under the table
by
Will Fastie
1 day, 10 hours ago -
The Windows experience
by
Will Fastie
2 days, 1 hour ago -
A tale of two operating systems
by
Susan Bradley
5 hours, 54 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
2 days, 7 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 22 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
2 days, 15 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 day, 15 hours ago -
Blocking Search (on task bar) from going to web
by
HenryW
17 hours, 40 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.