EARTHWALKER
05-08-2002, 05:42 AM
This is my problem.
I have a listbox on a form which contains specific info from a table. On occasions when you choose an item from the listbox to add to the record the item isn't there so you need to add it. I can't have all the items in the list box because sometimes obscure ones do crop up which you can't plan ahead for.
As you can't add something to a listbox that isn't in the list (only combo boxes do this) i have made a button which opens up a tiny form which says "add new item" this is a form from the table which has the listbox as it's field.
It all works fine, you enter the new item description, you click another button on the new form to close it and you are presented with your original form; the table has a new item which you need so you click the list box and voila the item you just added isn't there but if you go directly to datasheet view on the table it is.
Obviously you need to refresh the form to allow for this but the only way I have managed that is to close the form and re-open it again. That's fine BUT it doesn't go back to the record you were on before you closed it.
So my question is can you make access remember what record you were on so that you can call this record up again when you re-open the table or am I completely off-track here and there is a very very simple way of refreshing a form without closing it so that a listbox shows newly added records?
Also when you are on a listbox and you begin to type it doesn't make the list drop down and auto list if you see what I mean. What i have to do is go to that listbox, click to bring the drop down list up and then start to type.
If none of this makes any sense then I appologise in advance as I've been working on this all day and I'm going insane!
EARTHY
I have a listbox on a form which contains specific info from a table. On occasions when you choose an item from the listbox to add to the record the item isn't there so you need to add it. I can't have all the items in the list box because sometimes obscure ones do crop up which you can't plan ahead for.
As you can't add something to a listbox that isn't in the list (only combo boxes do this) i have made a button which opens up a tiny form which says "add new item" this is a form from the table which has the listbox as it's field.
It all works fine, you enter the new item description, you click another button on the new form to close it and you are presented with your original form; the table has a new item which you need so you click the list box and voila the item you just added isn't there but if you go directly to datasheet view on the table it is.
Obviously you need to refresh the form to allow for this but the only way I have managed that is to close the form and re-open it again. That's fine BUT it doesn't go back to the record you were on before you closed it.
So my question is can you make access remember what record you were on so that you can call this record up again when you re-open the table or am I completely off-track here and there is a very very simple way of refreshing a form without closing it so that a listbox shows newly added records?
Also when you are on a listbox and you begin to type it doesn't make the list drop down and auto list if you see what I mean. What i have to do is go to that listbox, click to bring the drop down list up and then start to type.
If none of this makes any sense then I appologise in advance as I've been working on this all day and I'm going insane!
EARTHY