arashii
Registered User.
- Local time
- Today, 02:20
- Joined
- Feb 12, 2007
- Messages
- 22
Hi again everyone. I have a table with a Date field, format xx/xx/xxxx .
I'm trying to create a form that will let the user choose the month/day/year from 3 dropdown comboboxes to make it easier for them to choose the date, then pass this formatted date off to a query and a new record datasheet.
I was able to do it for the query, see form below:
Basically my two textboxes concatenate the 3 values in the comboboxes, then pass that to the query.
My criteria value in the query is:
Between [Forms]![Date]![TextFieldDate] And [Forms]![Date]![TextFieldDate2]
and it is able to get the formatted xx/xx/xxxx dates from the 2 textfields where I concatenated the dates
TextFieldDate = (=ComboMonth.Value & "/" & ComboDay.Value & "/" & ComboYear.Value)
My problem is doing the same thing for a FORM that creates a new record
.
If I do the same thing on the Date textbox (=ComboMonth.Value & "/" & ComboDay.Value & "/" & ComboYear.Value), then the box gets the value, but then how do I pass that value on to the new record datasheet
. On the other hand, if I put the Date field where the textbox value should go in the Control Source property, then the textbox just shows some date values already in existing records, and not the date the user specified.
I hope my question isn't so confusing. Appreciate any help on this.
Thank you!
I'm trying to create a form that will let the user choose the month/day/year from 3 dropdown comboboxes to make it easier for them to choose the date, then pass this formatted date off to a query and a new record datasheet.
I was able to do it for the query, see form below:

Basically my two textboxes concatenate the 3 values in the comboboxes, then pass that to the query.
My criteria value in the query is:
Between [Forms]![Date]![TextFieldDate] And [Forms]![Date]![TextFieldDate2]
and it is able to get the formatted xx/xx/xxxx dates from the 2 textfields where I concatenated the dates
TextFieldDate = (=ComboMonth.Value & "/" & ComboDay.Value & "/" & ComboYear.Value)
My problem is doing the same thing for a FORM that creates a new record

If I do the same thing on the Date textbox (=ComboMonth.Value & "/" & ComboDay.Value & "/" & ComboYear.Value), then the box gets the value, but then how do I pass that value on to the new record datasheet

I hope my question isn't so confusing. Appreciate any help on this.
Thank you!