setFocus now field bleeping help

hullstorage

Registered User.
Local time
Today, 23:13
Joined
Jul 18, 2007
Messages
213
Hi all
i have 2 forms for one of them i use the setfocus event
to take me to a field on the form that is still open

the small niggling problem is that when i go to type it bleeps at me and wont let me enter anything i have to manually click on the field then start typing

any ideas

i use the fsetaccesswindow event on some of my forms
this would not effect it would it??
 
just checking, are you sure you're on the control you want and not the form?
when you think you should be on the control (and before clicking or typing anything) go to the immediate window and type:
?Application.Screen.ActiveControl.Properties("Name")
 
What is this "set focus event" you speak of? Set focus is a method, not an event. How are you trying to set focus? What code or macro are you using (including all of the arguments)?
 
When you're having trouble with code, it really helps if you post the code for us to look at. You're there but we aren't! Get it?
 
What is this "set focus event" you speak of? Set focus is a method, not an event. How are you trying to set focus? What code or macro are you using (including all of the arguments)?


yes i am as the field is highlighted on the form ???
 
hullstorage, Bob and I both have asked you to post the code or macro you're using! Instead of doing that, you quote Bob's post and then give a response to (I assume) wazz's post. If you want help you're going to have to work with us here!
 
hullstorage, Bob and I both have asked you to post the code or macro you're using! Instead of doing that, you quote Bob's post and then give a response to (I assume) wazz's post. If you want help you're going to have to work with us here!


Hi all

here is the code i am using from the second form which update fields on the first form then closes the second form

Forms![frmdeliveryentry]![Consignee] = Me.Consignee
Forms![frmdeliveryentry]![Del1] = Me.Del1
Forms![frmdeliveryentry]![Del2] = Me.Del2
Forms![frmdeliveryentry]![Del3] = Me.Del3
Forms![frmdeliveryentry]![Del4] = Me.Del4
Forms![frmdeliveryentry]![DelTown] = Me.DelTown
Forms![frmdeliveryentry]![DelCounty] = Me.DelCounty
DoCmd.Close
Forms!frmdeliveryentry!DelContact.SetFocus

Thanks
 

Users who are viewing this thread

Back
Top Bottom