S
spavithr
I have an unbound test control called as "prd_id" in my
form. I wrote the following code to set the value to it in
the form_open event,
me![prd_id].text = rs![prd_id]
It gave an error saying "cannot access a control's value
without setting focus to it"
So i had to change the code as
me![prd_id].setfocus
me![prd_id].text = rs![prd_id]
this worked fine. But i feel there should be a way to set
the value without setting the focus. Otherwise when I have
a lot of controls to access, I will have to set the focus
for all of them.
Please advise.
Thanks
form. I wrote the following code to set the value to it in
the form_open event,
me![prd_id].text = rs![prd_id]
It gave an error saying "cannot access a control's value
without setting focus to it"
So i had to change the code as
me![prd_id].setfocus
me![prd_id].text = rs![prd_id]
this worked fine. But i feel there should be a way to set
the value without setting the focus. Otherwise when I have
a lot of controls to access, I will have to set the focus
for all of them.
Please advise.
Thanks