jamierbooth
Registered User.
- Local time
- Today, 12:44
- Joined
- Oct 23, 2013
- Messages
- 36
Hi all, I'm a bit stuck...
On a form to enter some new client info, I want users to be able to select their UserID from a combo box for future reference to other users (ie; Who made these notes?). For various reasons I want them to be able to add their UserID to the combo list for future selection if its not already on there.
There is a table set up for users, simply called tblUsers, with a single field, UserID. A query from this sorts the list alphabetically, and the combo uses this query to populate its list - qryUserID.
Users can currently select from a list or write their own UserID in the box, however when they write their own ID it doesn't get saved.
I've googled all morning and have found various explanations of how to fix this, ie using "if not in list" and some code, but haven't yet got one to work. It seems to me this ought to be simple but I still can't work it out!!:banghead: (I say that, but I bet its not simple at all.....)
I don't need any message boxes or checking, just add it and move on kind of thing. It doesn't need to refresh the list immediately, as the user moves on swiftly once completing 2 more fields.
Any help with this would be splendid.
Jamie.
On a form to enter some new client info, I want users to be able to select their UserID from a combo box for future reference to other users (ie; Who made these notes?). For various reasons I want them to be able to add their UserID to the combo list for future selection if its not already on there.
There is a table set up for users, simply called tblUsers, with a single field, UserID. A query from this sorts the list alphabetically, and the combo uses this query to populate its list - qryUserID.
Users can currently select from a list or write their own UserID in the box, however when they write their own ID it doesn't get saved.
I've googled all morning and have found various explanations of how to fix this, ie using "if not in list" and some code, but haven't yet got one to work. It seems to me this ought to be simple but I still can't work it out!!:banghead: (I say that, but I bet its not simple at all.....)
I don't need any message boxes or checking, just add it and move on kind of thing. It doesn't need to refresh the list immediately, as the user moves on swiftly once completing 2 more fields.
Any help with this would be splendid.
Jamie.