very basic MS access 2007 (button click no read issue)

L

loc_p

I added 2 text fields and a button to a form in MS access 2007. and i went
to the code builder and tried to add values to the text fields .

ex:

textBox1.text = "name"

i coded this to the button click event.. but some times after i get an
error.. the button click property never works...

so i have to create a new form and redo it. can some one tell me why this is
hapenning , and tell me a way to prevent this..
 
D

Dale Fye

In Access, you can only use the text property if the control has the focus.
Instead, try:

textbox1 = "Name"

or

textbox1.Value = "Name"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top