Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

control event problem on keyboard return key

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Can someone help with this one

I have a combo box called [name] with a list of names that sets the current date on another control called [date] on the [name]afterupdate event
If the user selects a name from the list it works fine

If the user uses the autofill facility by typing in the first few letters in the [name] control and then presses the return key on the keyboard, the date does not fill (the code is not executed) Perhaps I should be placing the code in another event on the [name] control but not sure which one

Thanks
 
I don't see any autofill property for any access object !
 
Aposlogies - I have called it autofill and shouldn't have

To explain

The row source for the control is based on a query and the control is set to limit to list if the user types in one letter in the control then the control starts automatically populating the control with the first relevant item in the list

As stated, when they do this and press the return key then my after update code is not executed so assume the code should be entered in another event associated with the control

Hope this explains things
 
OK, you talked about the AutoExpand property.
What about the Change event procedure ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV

Many thanks

Have tried the change event procedure and this doesn't seem to work



 
And the LostFocus event ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV

Many thanks the lost focus event works fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top