-
Tom Wickerath
AskWoody PlusI’m not sure what you have in mind with your “Dragbox” concept, but I did have a quick look at your sample database. I noticed several text boxes for your search parameters, along with references to each text box in ‘squery’, a query that serves as the recordsource for your subform.
First, you will want to rid your existing code of all compile-time errors. Your main form has references to two controls, cbxName and cbxFilter, which are not present. On my machine, this resulted in 13 “Enter Parameter” prompts before the form opened with all records displayed in the subform. You will not see this effect if you have the VBA Editor settings for Compile On Demand checked (the default). This is a global setting that does not ‘travel’ with your database, so you may not want others to experience this if they open your application.
I also recommend that you set the VBA option to Require Variable Declaration in all new modules. This will give you the very important Option Explicit for newly created modules. You can find these options by opening the VBA Editor, and then clicking on Tools | Options… The Require Variable Declaration option is on the Editor tab, and the two Compile On Demand options (Background Compile and Compile On Demand) are found on the General tab. My advice: Enable (check) Require Variable Declaration, and disable (uncheck) both Background Compile and Compile On Demand. I also recommend deselecting the “Auto Syntax Check” option, on the Editor tab. I have a different name for this option: The carpel tunnel option, since it simply results in a modal error message, that you generally have to click your mouse to dismiss. Errors in VBA code are generally obvious, as they are shown in red font by default. Also, add the very important Option Explicit as the second line of code to the top of any existing modules, since the Require Variable Declaration option checked only kicks in for newly created modules.
I have two QBF (Query By Form) samples posted on the Seattle Access web site:
http://www.seattleaccess.org/downloads.htmLook for the January 8 and February 12, 2008 downloads. The first one, for 1/8/2008, is much easier to implement but not quite as versatile.
-
Tom Wickerath
AskWoody PlusIf you are using Outlook as your email client, you are welcome to incorporate a procedure I wrote several years ago. Have a look at page 20 in a Word document I call “Access Links”. You can download a zipped copy from here: http://www.accessmvp.com/TWickerath/downloads/accesslinks.zip.
You’ll also need a way of feeding this function a semicolon delimited list of email addresses, but that part is fairly easy. Post back if you need help doing that part.
-
Tom Wickerath
AskWoody PlusHi 79shultz,
You might want to have a look at these two subquery help topics, written by former Access MVP Allen Browne:
Subquery basics
http://allenbrowne.com/subquery-01.htmlSurviving Subqueries
http://allenbrowne.com/subquery-02.htmlAllen’s site is a fantastic site for learning about Microsoft Access.
http://allenbrowne.com/tips.html -
Tom Wickerath
AskWoody PlusRuirib,
I tried your SQL statement, after creating the two tables and entering some test data, but I received an error message that reads:
“You tried to execute a query that does not include the specified expression ‘ProductID’ as part of an aggregrate function.”
I thought you were close, so I tried a slight variation of your suggested SQL statement. This seems to return the desired result, with the very limited test data at hand:
Code:SELECT P.ProductID, Sum([T.UnitsInStock]*[P.QtyPerBox]) AS InStock, T.StockDate, Max(T.StockDate) AS MaxOfStockDate FROM tblProducts AS P INNER JOIN tblStockTake AS T ON P.ProductID = T.ProductID WHERE T.StockDate= (SELECT Max(StockDate) FROM tblStockTake T2 WHERE T2.ProductID = P.ProductID) GROUP BY P.ProductID, T.StockDate;
-
Tom Wickerath
AskWoody PlusIndustry data says 85% of TV viewers use cable. Probably a large percentage connect to cable via if HDMI if they have it. I wonder how many have two HDMI ports? I have a fairly recent Sony with only one HDMI port so I can’t use Chromecast. To bad the ads and articles don’t mention that one should check this first.
Hi Heritage,
While you may not have been planning on a small extra expense, you can purchase an HDMI switcher for not much money. Google that term–you will find lots of hits. Here is just one such hit: http://sewelldirect.com/3×1-HDMI-Switch-with-Remote-13b-Compliant.asp -
Tom Wickerath
AskWoody PlusI bought a Chromecast and after talking to Google’s tech support I returned it. Not only was I using XP (which worked exactly ONCE with the device), I also was using the newer 5.0 GHZ spectrum and found info on their website that they are not supporting that either. I wasted about 2 days trying to sign in a second time without success. I will wait for a later version or skip it entirely. I also use an Audioengine W1 to send sound from my PC to my stereo receiver wirelessly, and the Chromecast interferred with that. The Chromecast window reverted to my PC speakers after a reboot. Altogether it was a major disappointment. At least through Amazon, I quickly got a full refund.
The 2.4 GHz spectrum tends to suffer from co-channel, adjacent-channel, and non 802.11 interferences a *lot* more than the 5.0 GHz spectrum. A common source of non 802.11 interference is microwave ovens. If you live in a single family residence, then the S/N level of neighboring WAPs (Wireless Access Points) is probably too weak to present much co and/or adjacent channel interference. However, if you live in an apartment complex, the 2.4 GHz spectrum is truly crowded. I know, as I’ve measured this with my Fluke Aircheck.
-
Tom Wickerath
AskWoody PlusI found video quality on the TV relatively poor and audio rarely synched properly. I tried to watch a feature film from a password-protected Vimeo feed. After about six minutes, I gave up. I plugged the laptop directly into the HDTV, grabbed a wireless mouse, and enjoyed the movie.
Just curious….is Chromecast using the 2.4 GHz spectrum, or the newer 5.0 GHz spectrum?
-
Tom Wickerath
AskWoody PlusCheck out these links:
http://allenbrowne.com/ser-63.html
http://allenbrowne.com/bug-18.html
http://allenbrowne.com/QueryPerfIssue.html
In this last article, see the section titled “FIRST versus GROUP BY”. Note that you are free to change the default aliasing, by entering something unique, separated by a colon. The field alias must be unique, and cannot be the name of another field available to the query. -
Tom Wickerath
AskWoody PlusHi Sanora,
However, client printer(s) and printer here in the office are not the same.
You can install the printer driver for your client’s exact model of printer, without actually having the printer. Just don’t attempt to print a test page. After installing the print driver, temporarily set this phantom printer as your default. Then compare your reports in the two copies.
Also, to help determine if there are other differences, you can use the undocumented SaveAsText method. Open the Immediate Window (). Then enter a command similar to that shown below:
Application.SaveAsText acReport, “ReportName“, “C:TempReportName_Copy1.txt”
where ReportName is the name of the report in question. In copy 2, perform a similar export, again using the Immediate Window:
Application.SaveAsText acReport, “ReportName“, “C:TempReportName_Copy2.txt”
Of course, you need to have a folder named “Temp” off of your C: drive, and you need to have write privileges to this folder. If not, make the appropriate substitutions to a different folder on your system. When finished exporting the two reports to text files, try opening them in NotePad to compare them. Or, if you have a file comparison tool, such as Beyond Compare, you can use that as well. Look for any differences in the report definitions.
-
Tom Wickerath
AskWoody PlusI’d like to suggest an additional tip for Fred Langa’s top story article titled “Proven techniques to secure your Wi-Fi network”: If not needed, disable the ability for a wireless client to communicate with another wireless client connected to the same network. The Cisco Linksys router administration utility on my older router refers to this setting as “AP Isolation”, which is disabled by default. If you enable this setting, then all wireless clients and wireless devices on your network are isolated from each other; they will be able to communicate with the router, but not with each other. Of course, this setting will not work for you if you use a wireless printer.
-
Tom Wickerath
AskWoody PlusWhat about file transfer/file copy speeds from one computer to another on a home network? I don’t see any data for that in the charts at SmallNetBuilder; the charts are all about internet speeds and wireless transmission of internet. I’m more interested in how fast large files can be transferred from computer A to computer B through wired ethernet connections on the router. For example, our inexpensive wireless router gives us download speeds at least as fast as what we pay for (Comcast 25Mbps down./5Mbps up.). But, when we copy, say, a 2GB HD video file from one PC to another PC the transfer speed is between 5.5MB/sec. and 6.2MB/sec. The same happens with other groups of medium and smaller size files. The router claims to have Gigabit 10/100/1000 LAN. Both PCs have Gigabit LAN (one Marvell the other Intel), and the transferred files reside on Sandisk SSDs in both PCs. So, why is the file transfer speed so slow? If I multiply MBps by 8 to convert to Mbps the speed is still rather low when you consider that even a slow hard drive can read and write large files at better than 30MB/sec. Do any reasonably priced routers have significantly better file transfer/copy speeds?
Have you tried using some new patch cords? You could have a defective patch cord, with NEXT (Near-End Crosstalk) or some other problem. You might want to have a look at this FlukeNetworks video: “The Truths about Twisted Pair Patch Cables.”
Also, check for a Duplex Mismatch error.
-
Tom Wickerath
AskWoody PlusI have a friend in Jerusalem who is running Norton Internet Security (NIS) with Malwarebytes (I recently gave him a paid subscription to the Pro version of Malwarebytes). Everything is running fine on his Windows XP system, that is about 7 years old, and currently has 1 GB of RAM (maximum upgradable to 2 GB RAM). Malwarebytes did catch one piece of malware that slipped through NIS.
On my ~6 year old laptop (Windows 7 Ultimate), Malwarebytes detected and removed a browser hijack malware that slipped past the guard of my TrendMicro AV software.
-
Tom Wickerath
AskWoody PlusGenerally good article, but I would appreciate a more through explaination of the statement “Stop using Windows XP.” To me, this sounds like it toes the Micro$oft line about the reason to upgrade. Yes, there was mention of UAC (User Access Control) built into Windows 7, but there was also a statement that indicated the typical Pavlovian dog response: “Most people just click Okay and continue”. So, they are not gettng the benefit of UAC. What about running any operating system under restricted privledges for browsing, such that no software can be installed? Is Windows XP still in need of updating in that scenerio?
-
Tom Wickerath
AskWoody PlusHow are you building your queries? Are you using query design view or SQL view, building them in VBA code, etc.?
Are you able to post a small generic sample (no confidential data) that demonstrates this error? -
Tom Wickerath
AskWoody PlusNovember 22, 2012 at 5:00 am in reply to: Calculate an age, adding # of months if child is not yet 1 year old #1358423You might want to try a custom function, written by Graham Seach and Doug Steele:
A More Complete DateDiff Function
http://www.accessmvp.com/djsteele/Diff2Dates.htmlI have attached a sample database, in Access 2000 file format, that includes two queries that call the “Diff2Dates” function.
32447-CalculateAgesNote: If you are running Access 2007 or 2010, make sure to trust the folder first, since this sample includes Visual Basic for Applications (VBA) code:
Dealing with the Trust Center
http://www.accessmvp.com/TWickerath/articles/trust.htmThe first query, “qryCalculateAges”, includes the original data from your spreadsheet, along with age calculations for November 5 (the date you started this thread), and the current system date on your computer as today’s date. The two calculated ages are presented in “ymd” (Year-Month-Day) format. The data is sorted by birth month and birth day (1/25, 2/15, 3/1, etc.).
In the second query, “”qryCalculateAgesWithNestedIIFStatements, I used a rather ugly series of nested IIF statements to show age in:
-
[*]Years only if they are 16 or older
[*]Years and months, if they are between 13 months to 15 years of age and
[*]Years, months and days, if they are 12 months or younger
![]() |
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 |

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
-
Office gets current release
by
Susan Bradley
3 hours, 31 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
8 hours, 54 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
5 hours, 38 minutes ago -
Stop the OneDrive defaults
by
CWBillow
9 hours, 43 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
19 hours, 38 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
21 hours, 50 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
22 hours, 8 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
22 hours, 45 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
23 hours, 22 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
11 hours, 32 minutes ago -
Enabling Secureboot
by
ITguy
18 hours, 32 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 7 hours ago -
No more rounded corners??
by
CWBillow
1 day, 3 hours ago -
Android 15 and IPV6
by
Win7and10
16 hours, 50 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 19 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 22 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 16 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 5 hours ago -
May preview updates
by
Susan Bradley
1 day, 17 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 8 hours ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 21 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 18 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
21 hours, 5 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 21 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
17 hours, 52 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 9 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 7 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 22 hours ago -
Another test post
by
gtd12345
3 days, 22 hours ago -
Connect to someone else computer
by
wadeer
14 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.