Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Access only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Access
Default Date
Default Date
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
BurtonBach
New Member
Join Date:
Oct 2006
Posts:
58
#1
Default Date
Mar 7 '08, 08:47 PM
This question is in regards to a text box on a form in Access. Is there a way to make the default value setting default to the first day of the current month?
nico5038
Recognized Expert
Specialist
Join Date:
Nov 2006
Posts:
3080
#2
Mar 7 '08, 10:11 PM
Try, e.g. in the OnOpen event of the form:
Code:
me.txtDatefield = dateserial(year(date),month(date),1)
Nic;o)
Comment
Post
Cancel
FishVal
Recognized Expert
Specialist
Join Date:
Jun 2007
Posts:
2656
#3
Mar 7 '08, 10:15 PM
Something like
=DateSerial(Yea r(Date()),Month (Date()),1)
Kind regards,
Fish
Comment
Post
Cancel
BurtonBach
New Member
Join Date:
Oct 2006
Posts:
58
#4
Mar 7 '08, 10:38 PM
That worked. Thank you!
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment