I would like to be able to select the last name of a customer in a from showing the appointments.
The Last name field is "nvcLast". In my appointments form, frmAppointment, I inserted a DGV and I included a combo box which is meant to retrieve nvcLast. I do not want to retrieve all customers every time, so I try to retrieve the TOP say 100 based on the letters of nvcLast.
It appears that I can fill in a specific combo box value, for say customer "Doe" , but when I try to insert another customer, say "Jones", the TOP 100 customers that begin with "J" are retrieved BUT the combo box which help value "Doe" no longer holds the value.
It seems that in a DGV the combo column will only display values which are included in the latest "SELECT" statement.
Is this the case?
If Yes, can you please suggest a solution, short of a Popup form?
Thanks,
John
The Last name field is "nvcLast". In my appointments form, frmAppointment, I inserted a DGV and I included a combo box which is meant to retrieve nvcLast. I do not want to retrieve all customers every time, so I try to retrieve the TOP say 100 based on the letters of nvcLast.
It appears that I can fill in a specific combo box value, for say customer "Doe" , but when I try to insert another customer, say "Jones", the TOP 100 customers that begin with "J" are retrieved BUT the combo box which help value "Doe" no longer holds the value.
It seems that in a DGV the combo column will only display values which are included in the latest "SELECT" statement.
Is this the case?
If Yes, can you please suggest a solution, short of a Popup form?
Thanks,
John