martincabrera33
New member
- Local time
- Today, 19:38
- Joined
- Aug 23, 2020
- Messages
- 8
Hello,
I have a similar question regarding yesterday, but this time is in a different form.
I have a form, that has a subform, and I am adding a button to the form that is getting data from the subform
@arnelgp Yesterday you taught me to use
format(Me!DateTextbox, "yyyy_mmm_dd")
To get the date of a field.
But on a subform I cant make it work.
But it doesnt work. Not sure how to pull the format just to show me the year, currently if I do something like:
This actually work, but not sure how to get just the year.
If somebody can help me it would be awesome.
Attached is the error I get
Thanks,
I have a similar question regarding yesterday, but this time is in a different form.
I have a form, that has a subform, and I am adding a button to the form that is getting data from the subform
@arnelgp Yesterday you taught me to use
format(Me!DateTextbox, "yyyy_mmm_dd")
To get the date of a field.
But on a subform I cant make it work.
Code:
Forms![Form].[Subform].Form![format(Me!DateTextbox, "yyyy")]
But it doesnt work. Not sure how to pull the format just to show me the year, currently if I do something like:
Code:
Forms![Form].[Subform].Form![DateTextbox]
This actually work, but not sure how to get just the year.
If somebody can help me it would be awesome.
Attached is the error I get
Thanks,