-
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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Windows AI Local Only no NPU required!
by
RetiredGeek
1 hour, 40 minutes ago -
Stop the OneDrive defaults
by
CWBillow
4 hours, 42 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
7 hours, 8 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
9 hours, 20 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
9 hours, 38 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
10 hours, 15 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
10 hours, 52 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
6 hours, 10 minutes ago -
Enabling Secureboot
by
ITguy
6 hours, 2 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
18 hours, 46 minutes ago -
No more rounded corners??
by
CWBillow
14 hours, 35 minutes ago -
Android 15 and IPV6
by
Win7and10
4 hours, 20 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 7 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 9 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 4 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
1 day, 17 hours ago -
May preview updates
by
Susan Bradley
1 day, 4 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
20 hours, 7 minutes ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 9 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 6 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
8 hours, 35 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 8 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
5 hours, 22 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
2 days, 20 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
19 hours, 18 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 10 hours ago -
Another test post
by
gtd12345
3 days, 10 hours ago -
Connect to someone else computer
by
wadeer
3 days, 4 hours ago -
Limit on User names?
by
CWBillow
3 days, 8 hours ago -
Choose the right apps for traveling
by
Peter Deegan
2 days, 21 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.