-
WSShane Sargent
AskWoody LoungerCheck out the VBA functions in the Access Web; they have a number of functions for dealing with work days, including one to count the number of workdays between two dates.
-
WSShane Sargent
AskWoody LoungerIf you’re determined to use that kind of a process, you could run a select query that looks for records with specified fields that are null, and report that number of records to the user, then run a delete query which expunges them from the table.
Or, you might consider a design change in the form itself which warns the user that they have deleted useful data, say, in the OnCurrent event, and react to user choices there instead.
-
WSShane Sargent
AskWoody LoungerQuoting from Beginning Access 2000 VBA, “…the EOF property is True if the current record pointer is placed immediately after the last record.”.
Based on that definition, I’m not sure that I see the problem with your code; have you been able to resolve the issue w/ Charlotte’s advice?
-
WSShane Sargent
AskWoody LoungerRupert:
No handy reference immediately available to address where the EOF is, but can you print an identifying field to the immediate window for the record Access considers to be the records at the EOF?
-
WSShane Sargent
AskWoody LoungerChiming in with my
, if it’s a one time deal, I’ve found the easiest thing to do is insert a row directly under the column headings in the Excel file and fill the columns with the value “ZZZ” for that row; it forces Access to recognize the columns as text, and the record is easily recognized and deleted once it’s in Access.
If anyone from Redmond is reading, though the functionality of Access guessing at the data type in an Excel import is handy, ultimate discretion should be with the user/developer.
-
WSShane Sargent
AskWoody LoungerIf you’d rather not make a global change, via code you can set the SelStart property of the control upon entering it. For instance, upon entering a field, set the SelStart = 0, and the cursor starts blinking at position 0.
-
WSShane Sargent
AskWoody LoungerThanks for the pointer – that’s a great ‘lil app!
-
WSShane Sargent
AskWoody LoungerIn the full version of Adobe Acrobat, you have the ability to capture a web site and determine how many layers you drill down, whether you wish to stay in the same domain, etc. Also, it’ll keep links intact for the document it creates. Pretty useful sometimes for fairly static sites…
-
WSShane Sargent
AskWoody LoungerIf your field names are “Department” and “Audit Type”, the following should work:
Private Sub Audit_Type_AfterUpdate() If Me.Department = "BND" And Me.Audit_Type = "First Piece" Then MsgBox "Yup" Else MsgBox "Nope" End If End Sub
-
WSShane Sargent
AskWoody LoungerGary:
In design view for the delete query you’ve constructed, when you right-click in the grey background and choose Properties, is the Unique Records property set to Yes? If not, set it to Yes and see if that makes a difference. Post back and let us know.
-
WSShane Sargent
AskWoody LoungerYou can set a mutli-field key, which should accomplish your design goal. In design view for the table, select both the first and last name fields, then hit the Key button. Walla!
I do have to wonder, though, if you really want this. Might you have two people with the same first and last name but are two distinct people? Lots of John Smith’s running around in the anglo-world.
Edited by Charlotte to remove excess space
-
WSShane Sargent
AskWoody LoungerIf I understand the construct, perhaps Me.Parent.Requery will do the trick.
-
WSShane Sargent
AskWoody LoungerOh. Yes, your 3 field combo key is a bit ineffective for what you’re trying to do, e.g. John Smith w/ ID#1 is NOT the same as John Smith w/ ID#2 if you’re using a ID-FirstName-LastName multi-field key.
Perhaps the best route is a data checking routine along the lines of what Bart proposed in reponse to your initial post?
-
WSShane Sargent
AskWoody Lounger>>Think we’ll survive…
The conversion, or the euro itself?
-
WSShane Sargent
AskWoody LoungerOdd that it accepted duped values after you established the combination key. If you try it and it doesn’t work out, post back and we can see what’s up. BTW, I’ve never known an honest-to-goodness John Smith!
![]() |
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
-
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
1 hour, 13 minutes ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
13 hours, 8 minutes ago -
Problem using exfat drives for backup
by
Danmc
13 hours, 26 minutes ago -
I hate that AI is on every computer we have!
by
1bumthumb
14 hours, 45 minutes ago -
Change Info in the Settings window
by
CWBillow
20 hours, 7 minutes ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
1 day, 2 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
12 hours, 16 minutes ago -
Use of Gmail rejected.
by
CBFPD-Chief115
12 hours, 55 minutes ago -
WuMgr operational questions
by
Tex265
13 hours, 35 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
1 day, 17 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
18 hours, 18 minutes ago -
Backing up Google Calendar
by
CWBillow
2 days ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
2 days, 13 hours ago -
File Naming Conventions (including Folders)
by
Magic66
1 day, 11 hours ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
2 days, 20 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
2 days, 6 hours ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
1 day, 13 hours ago -
Adding Microsoft Account.
by
DaveBRenn
2 days, 21 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
3 days, 21 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
3 days, 21 hours ago -
Windows 11 won’t boot
by
goducks25
1 day, 14 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
3 days, 11 hours ago -
Rest in Peace
by
Roy Lasris
4 days, 16 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
1 day, 13 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
4 days, 16 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
1 day, 7 hours ago -
Long Time Member
by
jackpet
4 days, 19 hours ago -
Woody Leonhard (1951–2025)
by
Will Fastie
12 hours, 55 minutes ago -
What I learned from Woody Leonhard
by
B. Livingston
4 days, 12 hours ago -
Windows Settings today
by
Simon Bisson
14 hours, 46 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.