-
WSLonnieB
AskWoody LoungerHi, Princess. I have had a lot of luck using a macro to do everything it appears you need to do.
I create a macro that uses the TransferSpreadsheet Action and the RunApp Action. In the list of Action Arguements section of the build macro dialog box, there are six boxes that you need to fill in. The only box that is not clear on what needs to be entered is the File Name box. This is an example of what I put in this box: s:IGCNTracking(DataEntry)NewStatus.xls. This tells the TransferSpreadsheet the Excel file to transfer to.
In the RunApp action, there is a Command Line box. This one is a little tricky also. You have to have the path of the Excel executable program and the file name (the same as the File Name in the TransferSpreadsheet Action). This is an example of this box’s contents: c:Program FilesMicrosoft OfficeOfficeexcel.exe s:IGCNTracking(DataEntry)NewStatus.xls. Be sure there is a space between excel.exe and s:.
I think if you try this method, you will like it much better than trying to do this with VBA.
-
WSLonnieB
AskWoody LoungerWoof! Woof!
Edited: I went home and looked under Tools. Guess what? My version of Outlook 98 does not have a Services choice. Is there any other way to make the .pst folder smaller? Maybe a third party product? Thanks.
-
WSLonnieB
AskWoody LoungerChris, I am also not that experienced with VBA, but if I look at some code from examples I have seen, the Set rs that you have written isn’t the same. For example, here is the way I have seen it done.
sSQL = “Select distinctrow * From tbl_User_Setup Where UserName = ‘” & _
Me!txtUserName & “‘ and Password = ‘” & Me!txtPassword & “‘;”Set db = CurrentDb
Set rst = db.OpenRecordset(sSQL, dbOpenDynaset)Although I don’t know why it wouldn’t work, you have an SQL query querying your query [test-alert]. Now the only problem you may have is that you placed brackets around test-alert. Try running it without the brackets. If that doesn’t work, try the above example.
Also, in the Do Loop, I don’t think you need the rs.MoveNext, but I am not sure. Have fun.
-
WSLonnieB
AskWoody LoungerThanks, Bill. I was able to do what I needed by using your example.
-
WSLonnieB
AskWoody LoungerThanks for getting back. I don’t have a favorite for Google. I type the URL in the address box.
-
WSLonnieB
AskWoody LoungerJuly 10, 2001 at 3:31 pm in reply to: Displaying 0 in a crosstab query instead of a blan (access 97) #532530Hi to you both. I had this “problem” yesterday in an unbound report field. I was calculating a percentage from two fields and when one of the fields was empty, I would get a blank value. What I did was add an IIf (immediate If) to the field in the report and it worked fine. For example, =IIf([field]=Null, “0”,[field]).
-
WSLonnieB
AskWoody LoungerJune 29, 2001 at 3:40 pm in reply to: Linking Data in different Workbooks (Excell 2000/SR-1) #531373A few years ago, we needed a time tracking program for 12 staff. I used the same method as Ken suggested. On each employee’s spreadsheet, I placed a sum function in the first row (A1-L1), entered a title for each column in the second row (A2-L2) and set the sum range for the columns (starting a A3-A8000 to L3-L8000). Then, I freeze the first two rows (Windows menu|Freeze Panes). (The macro Ken has will work, but, if the employees always save their spreadsheet where they last entered data, the spreadsheet will open to that location. But, it would probably be better to have the macro.)
In the supervisor’s spreadsheet, I listed all of the employees in column A and for each employee linked to their totals row (A1-L1) to the supervisor’s column B-M. So, every time the supervisor opened his speadsheet, his information was automatically updated. It worked real well.
Then, I created pie charts for each employee that showed how they spent their time. The pie charts were updated automatically when the supervisor’s spreadsheet opened.
Of course, all of the spreadsheets were located on a shared drive.
-
WSLonnieB
AskWoody LoungerRupert, it didn’t work. This time Visual Basic for Applications was checked as Missing (Missing: Visual Basic for Applications), but Visual Basic for Applications was also checked as there. In other word, they both had check marks. And, as soon as I unchecked the Missing box, the program worked.
-
WSLonnieB
AskWoody LoungerBrian, that did it. The Microsoft DAO 3.51 Object Library was missing.
Question: It was missing in Rupert’s database but it is in my other databases. Anyone know why?
-
WSLonnieB
AskWoody LoungerRupert,
Thanks. I opened the code and References is there. Whew! But, it still doesn’t work.
This is the line of code that doesn’t work:
fieldTime = Format(Now, “HH:MM”)
It doesn’t recognize “Format”.
I looked for a reference to Format in the Object Browser and could find a specific one. Do you know which Reference I may have missing?
-
WSLonnieB
AskWoody LoungerI don’t know where to look for references. I have Access 97 and when I look under the Tools menu, References are not listed. I may have a bad install of Office 97. I don’t know. Do you have any idea why it isn’t under Tools?
-
WSLonnieB
AskWoody LoungerHi, Rupert. I tried it on Access 97. It didn’t recognize the “Format” word in the second form.
-
WSLonnieB
AskWoody LoungerProblem solved. I placed the code on the Got Focus event of the strPICLastName control and it worked. Thanks again.
-
WSLonnieB
AskWoody LoungerI have the code in the On Open event. The two name fields are on the form as well as the email field. It may be that the On Open event is not the place for the code. I will try it another way. Still, if you guys have any suggestions, please send them and thanks.
-
WSLonnieB
AskWoody LoungerThanks Mark and Paul,
There isn’t a function on the control, that I can tell.
The control is on a form. What I am trying to do is to have the email address for our staff to be written to a field on a form which would then be added to the control source table. We have a standard email address system (probably like most places). Instead of having to write each one, this code, when it works, will do it automatically.
HTH you two and me.
![]() |
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
-
The time has come for AI-generated art
by
Catherine Barrett
2 hours, 14 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 hours, 15 minutes ago -
23 and you
by
Max Stul Oppenheimer
2 hours, 17 minutes ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 17 minutes ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 37 minutes ago -
Windows 11 Windows Updater question
by
Tex265
10 hours, 28 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
17 hours, 23 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
21 hours, 54 minutes ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
4 hours, 28 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
15 hours, 16 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 3 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 4 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 12 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 8 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
13 hours, 11 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
11 hours, 51 minutes ago -
Google One Storage Questions
by
LHiggins
2 hours, 58 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
3 hours, 5 minutes ago -
Ancient SSD thinks it’s new
by
WSila
17 hours, 47 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 3 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
2 hours, 31 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 11 hours ago -
Firefox 137
by
Charlie
14 hours, 11 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 15 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 16 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 11 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 19 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 1 hour ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
3 days, 11 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.