I have a problem while inserting values into textboxes. The textboxes are created dynamically. Now i would like to insert data into these textboxes and display in the form.
In the code txtday& i & k is the dynamically created textbox. I am able to create textbox. But not able to insert data into it. The above statement is working fine.
But i am getting error when &i & k are inserted to code. message says
" Compile error:
Expected: = "
I would like to know the syntax for inserting data.
Thanks
In the code txtday& i & k is the dynamically created textbox. I am able to create textbox. But not able to insert data into it. The above statement is working fine.
Code:
Forms!result!txtday.Value = days
But i am getting error when &i & k are inserted to code. message says
" Compile error:
Expected: = "
I would like to know the syntax for inserting data.
Thanks
Code:
Public gv_wcnum As String Public Function get_schedule() Dim days, shifts, total As Integer Dim i,k as Integer For i = 1 to 20 For k = 1 to 8 days = 30/3 Forms!result!txtday"& i & k".value = days next k next i End Function
Comment