-
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. 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
-
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 hour, 26 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 hour, 46 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
6 hours, 27 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
11 hours, 34 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
11 hours, 41 minutes ago -
regarding april update and may update
by
heybengbeng
13 hours, 10 minutes ago -
MS Passkey
by
pmruzicka
58 minutes ago -
Can’t make Opera my default browser
by
bmeacham
20 hours, 50 minutes ago -
*Some settings are managed by your organization
by
rlowe44
7 hours, 34 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
19 hours, 45 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days ago -
AI slop
by
Susan Bradley
14 hours, 32 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 1 hour ago -
Two blank icons
by
CR2
13 hours, 27 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 10 hours ago -
End of 10
by
Alex5723
2 days, 13 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 11 hours ago -
test post
by
gtd12345
2 days, 19 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 9 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
11 hours, 47 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 23 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 11 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 14 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 15 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 3 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 17 hours ago -
Are manuals extinct?
by
Susan Bradley
17 hours, 39 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
4 days, 2 hours ago -
Network Issue
by
Casey H
3 days, 13 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.