Hi All,
I have this query in a combo box row source to populate it:
Right now, the user has to click on the combo box for the appropriate name to show up and then he needs to click on it to select it.
I would like to change this so the name automatically appears in the in the combo box when it gets the focus, so there is no need to click on it to select the name. I think that what I need to do is to have a "before update" event on the combo box and then add the appropriate code.
I have tried this and the code above does not work. How do I create the appropriate query (using code) to do the same as the above one?
Thanks
mafhobb
I have this query in a combo box row source to populate it:
Code:
SELECT [RD Staff].[Name] FROM [RD Staff] WHERE ((([RD Staff].[Name])= Currentuser)) ORDER BY [RD Staff].[Name];
Right now, the user has to click on the combo box for the appropriate name to show up and then he needs to click on it to select it.
I would like to change this so the name automatically appears in the in the combo box when it gets the focus, so there is no need to click on it to select the name. I think that what I need to do is to have a "before update" event on the combo box and then add the appropriate code.
I have tried this and the code above does not work. How do I create the appropriate query (using code) to do the same as the above one?
Thanks
mafhobb