none
formatting does not work RRS feed

  • Question

  • i have an unbound textbox with a dat format long date

    if the form opens and the me.openarg is null then the today date is used and the formatting goes well

    if a date is passed with the openarg , i change the date in 'onload' and then the date is not formatted

    why ? and what should i do ?


    Friday, September 27, 2019 6:16 AM

Answers

  • if a date is passed with the openarg , i change the date in 'onload' and then the date is not formatted

    Hi tekoko,

    A date passed through Openargs is just a string, not a Date/DateTime.

    You can try to convert the String to DateTime using:    this_date = CDate(Me.Openargs).

    Imb.

    • Marked as answer by tekoko10 Friday, September 27, 2019 11:00 AM
    Friday, September 27, 2019 7:02 AM