-
WSiksotof
AskWoody LoungerYou can use the Find Duplicates Query Wizard to create a query that returns the duplicates on specified fields. To start the wizard, activate the Queries section of the Database window, click New, select Find Duplicates Query Wizard and click OK.
If you want to weed out records that are identical in ALL fields, you could create a query based on the table that returns all fields, and set the Unique Values property of the query to Yes. Change the query into a Make Table query so that you can create a new table with the unique records.
Thank you V M Hans,
Darren.
-
WSiksotof
AskWoody LoungerHere is a query you can use:
Code:Sub Convert2Date() Dim c As Variant Dim oCell As Range Application.ScreenUpdating = False For Each oCell In Range("E:E,F:F,I:I,J:J").SpecialCells(xlCellTypeConstants, xlTextValues) If oCell.Row > 1 Then oCell = DateSerial(2000 + Right(oCell, 2), Mid(oCell, 4, 2), Left(oCell, 2)) End If Next oCell Application.ScreenUpdating = True End Sub
Note: you don’t have to worry about the date format. You can set the Format property in Access after importing the tables.
Cheers, Hans, that is marvellous.
Darren
-
WSiksotof
AskWoody LoungerCould you post a small sample workbook? Thanks in advance.
Hi Hans, columns E f I and J
Thanks, Darren.
-
WSiksotof
AskWoody LoungerYou can create linked tables in Access that connect to each of the tabs in the Excel spreadsheet. But then you’d have to write append queries based on these linked tables to properly populate your Access tables.
Thanks Mark, that helps, I’ll need to clean the Excel files first though.
Cheers, Darren.
-
WSiksotof
AskWoody LoungerLet’s say that your form is named frmInput and that the text box is named txtDays.
In the Criteria line for the DDate column in the query, enter the following condition:>=Date()+[Forms]![frmInput]![txtDays]
Thanks Hans, that simple? I feel foolish.
Regards as ever, Darren.
-
WSiksotof
AskWoody LoungerAccess requires brackets after the function name in expressions (unlike in VBA code), so the condition would be
>Date()+14
If you omit the brackets, Date will be interpreted as a string.
Many thanks, Hans.
Darren.
-
WSiksotof
AskWoody LoungerThe value of the toggle button is either True (if it is “down”) or False (if it is “up”) so you can set the value of the Visible property of the calendar control to the value of the toggle button.
You need to have a reference to the Microsoft Calendar Control 11.0 library (11.0 is for Office 2003, it’d be 9.0 for Office 2000, 10.0 for Office XP and 12.0 for Office 2007).
Here in a lesson! Thanks guys, I was using a button.
Cheers, Darren.
-
WSiksotof
AskWoody LoungerNo, that color is determined by the color scheme you select in Windows (it’s the color for 3D objects in Control Panel > Display Properties > Appearance tab > Advanced).
You can display a picture on a command button, though. This could be a bitmap of a single solid color…thanks hans
-
WSiksotof
AskWoody LoungerThanks for your comprehensive replies, thankfully I had got it right. What it has made me realise however is that the issue I have is removed somewhat.
My main form is client and sub of meetings. A client is intitially assigned to one adviser and usaully that adviser looks after that client through to the end of the process, which could be many meetings. I therefore want the adviser key in the subform to auto update without having to rely on the data inputter updating. Could I put an adviser field in the client table which can be updated for the intitial assignment when that client record is first logged and use this as a reference to auto update the adviser id in the many form? Or am I bending the rules too much here?
Thanks, Darren.
-
WSiksotof
AskWoody LoungerThank you Francois
Darren.
-
WSiksotof
AskWoody LoungerMarvellous Hans, thanks D.
-
WSiksotof
AskWoody LoungerThanks for this Hans.
Darren
-
WSiksotof
AskWoody LoungerHans, this nails it. tThank you.
Darren.
-
WSiksotof
AskWoody LoungerFor sure, I have a user form that feeds into a query the selections from a combo, I have this working fine now. The part I am struggling with is how to adapt my form to allow the user to say select students who are studying maths, english but not to show any of the students studying them if studying science. I know how to word this on the criteria line of the query but not sure how to model so users can put this in from a form..
-
WSiksotof
AskWoody LoungerOf course it’s structured wrong! I feel so stupid not having followed basic normalisation principles, more rusty than I thought. Thanks for pointing this out.
Darren.
![]() |
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
-
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
59 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 hour, 1 minute ago -
Copilot, under the table
by
Will Fastie
1 hour, 2 minutes ago -
The Windows experience
by
Will Fastie
1 hour, 2 minutes ago -
A tale of two operating systems
by
Susan Bradley
1 hour, 3 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
3 hours, 7 minutes ago -
Where’s the cache today?
by
Up2you2
18 hours, 27 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
11 hours, 13 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
2 hours, 12 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
19 hours, 9 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 11 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 11 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 13 hours ago -
MS Passkey
by
pmruzicka
15 hours, 14 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 20 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 7 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 19 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days ago -
AI slop
by
Susan Bradley
18 hours, 29 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 1 hour ago -
Two blank icons
by
CR2
10 hours, 2 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
12 hours ago -
End of 10
by
Alex5723
3 days, 13 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 11 hours ago -
test post
by
gtd12345
3 days, 19 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 9 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 11 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 23 hours ago -
Upgrading from Win 10
by
WSjcgc50
2 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.