Why join them at all? If you have two fields, YearField and MonthField say
you can always join them in an expression in a query or in code, or in the
ControlSource of a computed control in a form or report. The combo boxes can
then simply be bound to the fields. Having them as separate fields will make
things easier in many ways.
BTW Steve's SetFucus method is one of his own invention, the purpose of
which I would prefer not to contemplate! He meant SetFocus.
Provided the YearField value is a four digit one you can use:
=Format(YearField & "-" & MonthField, "mm yy")
Omitting a day of the month assumes the first of the month, but bear in mind
that this returns not a value of date/time data type, but a string
expression. In fact you can't have a date/time value of limited precision.
Even without any time of day being entered this assumes a time of day of
zero, i.e. midnight at the start of the day. You can see this yourself if
you use:
You still like to lie. I'm still waiting for an apology for the libelous
accusations you made the other day.
At least you freely admit to the fact that you do plagarize. So before you
forget, these newwsgroups are provided by Microsoft for FREE peer to peer
support.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.