Hi,
I have been creating a database, very slowly for the last few days to try and administer invoices and jobs etc for my father's business. On the invoices form, I made a query which gives the next number for the invoice (by adding one to the previous invoice number) and so at the top of the form there is a listbox which displays this result of the query. However, in order for this value to be added to the field of the invoices table, I have to physically click the listbox for the value to be entered. How can I make it so that the value in my listbox is automatically selected and so that I don't have to click on it each time?
I have tried the listbox.itemdata(0) function and although it selects the value for me, I still have to click on it for it to be added to the table.
Any help would be greatly appreciated on this matter
Thanks in advance
Nik
I have been creating a database, very slowly for the last few days to try and administer invoices and jobs etc for my father's business. On the invoices form, I made a query which gives the next number for the invoice (by adding one to the previous invoice number) and so at the top of the form there is a listbox which displays this result of the query. However, in order for this value to be added to the field of the invoices table, I have to physically click the listbox for the value to be entered. How can I make it so that the value in my listbox is automatically selected and so that I don't have to click on it each time?
I have tried the listbox.itemdata(0) function and although it selects the value for me, I still have to click on it for it to be added to the table.
Any help would be greatly appreciated on this matter
Thanks in advance
Nik