K kes Registered User. Local time Today, 14:56 Joined Mar 6, 2013 Messages 53 Apr 15, 2013 #1 hi, I have a list box on a form and I would like the user to have the possibilty to add another item not from the list into the table using a command button. how can I do that? thanks for the helpers!
hi, I have a list box on a form and I would like the user to have the possibilty to add another item not from the list into the table using a command button. how can I do that? thanks for the helpers!
pbaldy Wino Moderator Staff member Local time Today, 04:56 Joined Aug 30, 2003 Messages 36,272 Apr 15, 2013 #2 One way is to open a form bound to that table, then requery the listbox.
K kes Registered User. Local time Today, 14:56 Joined Mar 6, 2013 Messages 53 Apr 15, 2013 #3 And in that form what should i write in the command button? I want the users to have the option to add items that not on the value list
And in that form what should i write in the command button? I want the users to have the option to add items that not on the value list
pr2-eugin Super Moderator Local time Today, 12:56 Joined Nov 30, 2011 Messages 8,494 Apr 15, 2013 #4 Look into the NotInList event of the listbox.. If you want to add through button.. On click if the button, use.. Code: DoCmd.OpenForm "theBoundFormName", DataMode:=acFormAdd
Look into the NotInList event of the listbox.. If you want to add through button.. On click if the button, use.. Code: DoCmd.OpenForm "theBoundFormName", DataMode:=acFormAdd
pbaldy Wino Moderator Staff member Local time Today, 04:56 Joined Aug 30, 2003 Messages 36,272 Apr 15, 2013 #5 I'm on an iPad right now, but does a listbox have a not in list event? You can't type into it.
pr2-eugin Super Moderator Local time Today, 12:56 Joined Nov 30, 2011 Messages 8,494 Apr 15, 2013 #6 pbaldy said: I'm on an iPad right now, but does a listbox have a not in list event? You can't type into it. Click to expand... Thanks for coming along Paul, That is my bad.. The event is not exactly called Not in List.. It is "List Item Edit Form", which is similar to the NotInList event.. Sorry Kes.. Attachments editList.png 7.5 KB · Views: 417
pbaldy said: I'm on an iPad right now, but does a listbox have a not in list event? You can't type into it. Click to expand... Thanks for coming along Paul, That is my bad.. The event is not exactly called Not in List.. It is "List Item Edit Form", which is similar to the NotInList event.. Sorry Kes..
gemma-the-husky Super Moderator Staff member Local time Today, 12:56 Joined Sep 12, 2006 Messages 16,024 Apr 15, 2013 #7 pr2-eugin said: Thanks for coming along Paul, That is my bad.. The event is not exactly called Not in List.. It is "List Item Edit Form", which is similar to the NotInList event.. Sorry Kes.. Click to expand... when did that come in, Paul? I haven't seen that option before.
pr2-eugin said: Thanks for coming along Paul, That is my bad.. The event is not exactly called Not in List.. It is "List Item Edit Form", which is similar to the NotInList event.. Sorry Kes.. Click to expand... when did that come in, Paul? I haven't seen that option before.
pr2-eugin Super Moderator Local time Today, 12:56 Joined Nov 30, 2011 Messages 8,494 Apr 15, 2013 #8 I am using Access 2010, it has always been there..
pbaldy Wino Moderator Staff member Local time Today, 04:56 Joined Aug 30, 2003 Messages 36,272 Apr 15, 2013 #9 I believe that feature was introduced with 2007.
K kes Registered User. Local time Today, 14:56 Joined Mar 6, 2013 Messages 53 Apr 15, 2013 #10 Hi, pbaldy is right... It's a list box... I can't type into it, so the not in list event can't happend...
Hi, pbaldy is right... It's a list box... I can't type into it, so the not in list event can't happend...
pr2-eugin Super Moderator Local time Today, 12:56 Joined Nov 30, 2011 Messages 8,494 Apr 15, 2013 #11 You have Access version < 2007?
K kes Registered User. Local time Today, 14:56 Joined Mar 6, 2013 Messages 53 Apr 16, 2013 #12 no. I have 2010... the option exists, but because I can't type to a list box nothing happend (not on list event can't happend)
no. I have 2010... the option exists, but because I can't type to a list box nothing happend (not on list event can't happend)