-
WSaccdb
AskWoody LoungerMarch 31, 2004 at 7:33 pm in reply to: Format Year With Leading Zero? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7) #807772I tryed: Me.strYearFrom = Format(DateSerial(2004 – 1, 3 – 1, 1 – 1), “yy”)
It returned 03, but I’m not sure of the gotchas with this. Those more in the know will have to comment.
You could also try: Me.strYearFrom = Right(DatePart(“yyyy”, Now()) – 1, 2)
Anyone?
-
WSaccdb
AskWoody LoungerTry the Report wizard – AutoReport: Tabular based on a Crosstab query.
-
WSaccdb
AskWoody LoungerTry the Report wizard – AutoReport: Tabular based on a Crosstab query.
-
WSaccdb
AskWoody LoungerThanks Hans and Charlotte for the info.
I am familiar with Access 97 security. In VB6, if by including a Jet mdb file as a data store, will security work in the VB app much as it does in Access? If not what options are available to secure a VB app?
Thanks
-
WSaccdb
AskWoody LoungerThanks Hans and Charlotte for the info.
I am familiar with Access 97 security. In VB6, if by including a Jet mdb file as a data store, will security work in the VB app much as it does in Access? If not what options are available to secure a VB app?
Thanks
-
WSaccdb
AskWoody LoungerJanuary 28, 2004 at 8:19 pm in reply to: INSERT INTO, eliminating confirmation prompt (2002, SP2) #775812Create the query in the query grid. If it works without any errors copy the SQL from the View menu and paste it after SQL1 =
-
WSaccdb
AskWoody LoungerJanuary 28, 2004 at 8:19 pm in reply to: INSERT INTO, eliminating confirmation prompt (2002, SP2) #775813Create the query in the query grid. If it works without any errors copy the SQL from the View menu and paste it after SQL1 =
-
WSaccdb
AskWoody LoungerGet rid of:
‘Dim db As DAO.Database
‘Dim rst As DAO.Recordset‘Set db = CurrentDb
-
WSaccdb
AskWoody LoungerGet rid of:
‘Dim db As DAO.Database
‘Dim rst As DAO.Recordset‘Set db = CurrentDb
-
WSaccdb
AskWoody LoungerHave you set a reference to a DAO library?
Open any module. On the menu bar select Tools then References…
-
WSaccdb
AskWoody LoungerHave you set a reference to a DAO library?
Open any module. On the menu bar select Tools then References…
-
WSaccdb
AskWoody LoungerCorrection:
Try the below in the Form_Open event of your subform. Don’t forget to change MyTableName to the table name where your records are stored and the name of your form and the name of your text boxes.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Dim dtBeginningDate As Date
Dim dtEndingDate As DateSet db = CurrentDb
dtBeginningDate = CDate(Forms!MyFormName!MyTextBoxName.Value)
dtEndingDate = CDate(Forms! MyFormName!MyTextBoxName.Value)strSQL = “SELECT MyTableName.*”
strSQL = strSQL & ” FROM MyTableName”
strSQL = strSQL & ” WHERE (((MyTableName.DATE) Between #” & dtBeginningDate & “# And #” & dtEndingDate & “#));”Me.RecordSource = strSQL
-
WSaccdb
AskWoody LoungerCorrection:
Try the below in the Form_Open event of your subform. Don’t forget to change MyTableName to the table name where your records are stored and the name of your form and the name of your text boxes.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Dim dtBeginningDate As Date
Dim dtEndingDate As DateSet db = CurrentDb
dtBeginningDate = CDate(Forms!MyFormName!MyTextBoxName.Value)
dtEndingDate = CDate(Forms! MyFormName!MyTextBoxName.Value)strSQL = “SELECT MyTableName.*”
strSQL = strSQL & ” FROM MyTableName”
strSQL = strSQL & ” WHERE (((MyTableName.DATE) Between #” & dtBeginningDate & “# And #” & dtEndingDate & “#));”Me.RecordSource = strSQL
-
WSaccdb
AskWoody LoungerTry the below in the Form_Open event of your subform. Don’t forget to change MyTableName to the table name where your records are stored.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Dim dtBeginningDate As Date
Dim dtEndingDate As DateSet db = CurrentDb
dtBeginningDate = CDate(Forms!DateEntryForm!Text0.Value)
dtEndingDate = CDate(Forms!DateEntryForm!Text2.Value)strSQL = “SELECT MyTableName.*”
strSQL = strSQL & ” FROM MyTableName”
strSQL = strSQL & ” WHERE (((MyTableName.DATE) Between #” & dtBeginningDate & “# And #” & dtEndingDate & “#));”Me.RecordSource = strSQL
-
WSaccdb
AskWoody LoungerTry the below in the Form_Open event of your subform. Don’t forget to change MyTableName to the table name where your records are stored.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Dim dtBeginningDate As Date
Dim dtEndingDate As DateSet db = CurrentDb
dtBeginningDate = CDate(Forms!DateEntryForm!Text0.Value)
dtEndingDate = CDate(Forms!DateEntryForm!Text2.Value)strSQL = “SELECT MyTableName.*”
strSQL = strSQL & ” FROM MyTableName”
strSQL = strSQL & ” WHERE (((MyTableName.DATE) Between #” & dtBeginningDate & “# And #” & dtEndingDate & “#));”Me.RecordSource = strSQL
![]() |
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
5 hours, 29 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
14 hours, 23 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
15 hours, 43 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
10 hours, 16 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 4 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 5 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
36 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
1 day, 1 hour ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 16 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 20 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 20 hours ago -
Unable to eject external hard drives
by
Robertos42
7 hours, 20 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
1 hour, 12 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
54 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, 3 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 7 hours ago -
Upgrade Sequence
by
doneager
3 days ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 6 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 23 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 4 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 5 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 4 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
22 hours, 17 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
43 minutes ago -
Speeding up 11’s search
by
Susan Bradley
2 days, 3 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days, 15 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, 12 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.