Hi all and ty for your precious support.
I have an issue:
I have a data entry form where i put all things about a client purchase (like Name, Cost, and so on...).
There is a COMBOBOX used to find the client name.
The combobox use a query (based on Client table) that merge NAME and SURNAME.
If the name isn't founded i can push a button that brings me to another form where i can put the name and surname.
When putted, with the button SAVE AND CLOSE (with this vba command):
' Return Control object pointing to a combo box.
Set ctlCombo = Forms!FirstForm!ComboboxName
' Requery source of data for list box.
ctlCombo.Requery
DoCmd.Close
I close the form and come back to the first one.
The issue is that when i re-use the Combobox, don't refresh with the new name and i can't find it.
Is there a problem with the vba code?
There is another way to have the same result?
TY
I have an issue:
I have a data entry form where i put all things about a client purchase (like Name, Cost, and so on...).
There is a COMBOBOX used to find the client name.
The combobox use a query (based on Client table) that merge NAME and SURNAME.
If the name isn't founded i can push a button that brings me to another form where i can put the name and surname.
When putted, with the button SAVE AND CLOSE (with this vba command):
' Return Control object pointing to a combo box.
Set ctlCombo = Forms!FirstForm!ComboboxName
' Requery source of data for list box.
ctlCombo.Requery
DoCmd.Close
I close the form and come back to the first one.
The issue is that when i re-use the Combobox, don't refresh with the new name and i can't find it.
Is there a problem with the vba code?
There is another way to have the same result?
TY