-
WSkwvh
AskWoody LoungerCharlotte,
WOW! So how do I know what the default sort of the recordset is? I need to go through the records in a specific order, which coincidently is the order of one of the two indices.
How would I open the query, using the following example?
Set rst = dbs.OpenRecordset(“tblRates”, dbOpenDynaset)
Thanks tons for your help.
Ken
-
WSkwvh
AskWoody LoungerCharlotte,
WOW! So how do I know what the default sort of the recordset is? I need to go through the records in a specific order, which coincidently is the order of one of the two indices.
How would I open the query, using the following example?
Set rst = dbs.OpenRecordset(“tblRates”, dbOpenDynaset)
Thanks tons for your help.
Ken
-
WSkwvh
AskWoody LoungerCharlotte,
You are awesome. Will the dbOpenDynaset also work on local tables, or does it require the dbOpenTable always on local tables?
Thanks again for your help.
Ken
-
WSkwvh
AskWoody LoungerCharlotte,
You are awesome. Will the dbOpenDynaset also work on local tables, or does it require the dbOpenTable always on local tables?
Thanks again for your help.
Ken
-
WSkwvh
AskWoody Loungeruh oh. I have been using the following to calculate age. It seemed to work ok, but now, based on these kewl funtions presented here, I am concerned it may be incorrect.
‘Age in years is Current date (dtmToday) less Birth date (dtmBdate)
Int((dtmToday-dtmBdate)/365.25)In a query it looks like:
Age: Int((dtmToday-dtmBdate)/365.25)Is this oversimplified?
Thanks,
Ken
-
WSkwvh
AskWoody Loungeruh oh. I have been using the following to calculate age. It seemed to work ok, but now, based on these kewl funtions presented here, I am concerned it may be incorrect.
‘Age in years is Current date (dtmToday) less Birth date (dtmBdate)
Int((dtmToday-dtmBdate)/365.25)In a query it looks like:
Age: Int((dtmToday-dtmBdate)/365.25)Is this oversimplified?
Thanks,
Ken
-
WSkwvh
AskWoody LoungerCharlotte and Hans,
THANKS! ! !
I tried it both ways and it worked! You guys are awesome.Charlotte,
RE: “However, if the form you are popping up is already open”
No. The form can only be opened from the double click event, and when open is modal forcing user to close to notes form before going anywhere else. There may be caveats to that approach, but I don’t want the user to have the ability to have a bunch of forms, report previews, etc. open at one time.THANKS for sharing your brilliance.
Ken
-
WSkwvh
AskWoody LoungerHans,
I’m sorry about the lack of clarity.
frmNotes “knows” which record to display based on the query that feeds the form:
SELECT tblRehire.pkey, tblRehire.memRemarks
FROM tblRehire
WHERE (((tblRehire.pkey)=[Forms]![sfrmMain]![txtpkey]));In other words, when they double click on the control on the record displayed in the subform I use the txtpkey to relate to the appropriate record in tblRehire. Does that make sense?
Again, I apologize for the lack of information.
Thanks,
Ken -
WSkwvh
AskWoody LoungerThanks Hans. The following is the code I used in the Event of the control.
Private Sub txtTermDate_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = “frmNotes”
DoCmd.OpenForm stDocName, , , stLinkCriteria
End SubRecord source for form frmMain is tblPerson, which includes an Employee ID field that is used as the parent.
Record source for subform sfrmMain is tblRehire, which includes an Employee ID field that is used as the child.
Record source for frmNotes is tblRehire, which includes a primary key that acts as the link to sfrmRehire.sfrmMain contains three visible controls (txtTermDate, txtReason, chkRehire) and on hidden control (pkey).
frmNotes contains two controls, memNotes (visible) and pkey (hidden)
tblRehire contains the following fields:
pkey
fk_EmployeeID
dtmHireDate
dtmTermDate
strReason
logRehire
memRemarksDoes this help?
Thaniks,
Ken -
WSkwvh
AskWoody LoungerI used Apple Newtons for long time, and put off switching to the WindowsCE machines. Main reason was that for amount of money I spent on the thing, I expect THE PC to learn my handwriting, not ME relearn how to write in computereze/Grafiti. However, the Newton got too big, and not supported by the original manufacturer. (another story for another time)
I have had my IPAQ for nearly a year now. I travel a LOT! Two programs I find most useful are products by Ilium. eWallet is an awesome tool for keeping my personal information like frequent traveler/hotel numbers, software serial numbers, credit card numbers, and other information. The security seems very solid to me, so I don’t have a problem storing that type of sensitive information electronically. Heck, before I had the program, I was carrying a wallet full of cards with all the information anyway.
The other program I use is ListPro. Every possible list imaginable is available online, plus you can create your own custom lists. The one I use the most that saves me a ton of money and time is AT&T local dialup numbers when on the road without broadband connection.
I also love the ability to reconcile my work calendar with my personal calendar via Outlook by simply connecting the handheld to either the work pc, or the home pc.
Hope this helps.
-
WSkwvh
AskWoody LoungerHans,
Thanks for the queries. I will work on them this weekend and hopefully let you know that they work, and what a brilliant person you are.
Have a great day!
Ken
-
WSkwvh
AskWoody LoungerSteve,
Thanks for the shot in the dark.
1. Yes, I am using a main form/sub-form
2. Code posted attached (which is probably where the problem resides)
3. No, I am trying to filter on field(s) on the main form.Thanks for you help. Believe it or not, I am learning a lot from you guys.
Kwvh
-
WSkwvh
AskWoody LoungerCharlotte,
Thanks for the followup. Running Service Release 1. The tables don’t have lookup fields, but the form has four combo boxes with lookups, and there is one subform with 15 fields.
Subdatasheets is turned off and AutoCorrect is turned off. It looks like I will have to go through the code behind the form (oh no!). I will let you know the findings if you are interested, and assuming I find the problem. LOL
Thanks again.
Kwvh
-
WSkwvh
AskWoody LoungerJohn,
I get an error even in the mde, which would not open VB editor (I think). It occurs when the only object open is the one form. The form is called from another form, which closes when the offending form is opened.
Thanks for your help.
-
WSkwvh
AskWoody LoungerThanks Dave
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
4 hours, 34 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
13 hours, 27 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
14 hours, 47 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
9 hours, 20 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 3 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 4 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
1 hour, 18 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
1 day ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 15 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 19 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 19 hours ago -
Unable to eject external hard drives
by
Robertos42
6 hours, 24 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
16 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
52 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 2 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 6 hours ago -
Upgrade Sequence
by
doneager
2 days, 23 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 22 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 3 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 4 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 3 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
21 hours, 21 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 14 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
1 hour, 23 minutes ago -
Speeding up 11’s search
by
Susan Bradley
2 days, 2 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days, 14 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
5 days, 4 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
5 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.