-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You shouldn't have the # marks showing in the Text Box, only the date.
The TextBox's Format should be "mm/dd/yyyy" (without the quotes, and
without the hash marks #).
Just set the ControlSource of txtboxJanStart to this:
=DateSerial(Forms!FormQuarterly!txtBoxYear, 1, 1)
BTW the Hungarian prefix for a TextBox is just txt. Your control would
be named
txtJanStart
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQ9VzoYechKqOuFEgEQJJnACgz1TAJ909aiSAn+JMGTlwC2 6Kl68AnRgJ
O5DM37BWwXpfonUoJU2QhHlh
=4cTw
-----END PGP SIGNATURE-----
kaosyeti@comcast.net via AccessMonster.com wrote:[color=blue]
> hey... i have a 12 or so page report where each page is quite different from
> the others. the 20-50 controls i have on each page, however, are similar in
> that they run on monthly and quarterly date intervals. what i'd like to do
> is to be able to declare a text box or something somewhere to be equal to a
> date range and then reference this text box in other controls. something
> like this:
>
> txtboxJANstart = dateserial(forms!formquarterly!txtboxyear, 1, 1)
> txtboxJANend = dateserial (forms!formquarterly!txtboxyear, 1, 31)
>
> except that while the control txtboxJANstart (formatted as \#mm/dd/yyyy\#)
> DOES show #01/01/2005#, i can't use txtboxJANstart in any of the other
> controls in the form. all i get is #Error. where can i convienently declare
> these variables and call for them in controls in a report? btw, i have
> formquarterly opened the whole time this report runs, so that's not the issue.
> thanks.
>[/color]