TonC
06-26-2017, 10:04 AM
Hello,:hi:
I’ve got a form with a combobox named “Tijdvak”
The recordsource is a table called “tblTijdvak” , with autonumbering ´Tijdvak_Id´ , and a short textfield with the name
“Tijdvak”.
In the table “tblTijdvak” is the id. nr 78 , and the name of the textfield is wk26.
I put in the form, in the combobox field “Tijdvak” the next standardvalue I quote, ="wk"&(Format(Date();"ww"))
I hoped that the outcome was simple wk26, that is the current week of the year.
But there nothing to see in my form in the combobox “Tijdvak” when I open this form.
To check if my expression was correct in the immediate window I typed:
?"wk"&(Format(Date();"ww"))
Now it works fine. The result was wk26
How can I get the same result in my combobox in the form?
Thanks in advance.
TonC
I’ve got a form with a combobox named “Tijdvak”
The recordsource is a table called “tblTijdvak” , with autonumbering ´Tijdvak_Id´ , and a short textfield with the name
“Tijdvak”.
In the table “tblTijdvak” is the id. nr 78 , and the name of the textfield is wk26.
I put in the form, in the combobox field “Tijdvak” the next standardvalue I quote, ="wk"&(Format(Date();"ww"))
I hoped that the outcome was simple wk26, that is the current week of the year.
But there nothing to see in my form in the combobox “Tijdvak” when I open this form.
To check if my expression was correct in the immediate window I typed:
?"wk"&(Format(Date();"ww"))
Now it works fine. The result was wk26
How can I get the same result in my combobox in the form?
Thanks in advance.
TonC