Refer Textbox value

S

Sajit

I am used to forms in VB using the SQL Server. With that, I could equate a
variable Text1 = var1, to change the displayed value to var1. Is this not
possible in Access?

Does it always have to be something like,

Forms![lead_section_hod]!Text28.ControlSource = empl_no1
Even then the textbox does not display the desired value.

Sajit
Abu Dhabi
 
O

Ofer Cohen

Where did you put this line of code?

You can use the form Load event to display a value of a variable in a text
box.

Me.Text28= empl_no1

Questions:
Does empl_no1 has a value?
Where did you assign the value to empl_no1?
Where did you declared the variable empl_no1

If you need more help, please post the rest of the code and where did you
declared it.
 
Top