robert_anisoiu
Registered User.
- Local time
- Today, 11:03
- Joined
- Oct 27, 2010
- Messages
- 10
Hello,
I have a form where, when I select an item from the combobox, a textbox is filled with [comboboxname].[column](3). I set up the control source of the textbox with [comboboxname].[column](3)
Because this information can change during the time, I need to save it in a table as it is at the moment of selection.
I tried to execute an "insert into" command but only the bounded fields are saved.
Assume that the textbox name is "TxtAp" and the combobox name is "CmbTitle". In the fourth column of the CmbTitle is the price. The control source of TxtAp is "=[CmbTitle].[Column](3)". The price appears in TxtAp when I select a title from CmbTitle but when I try to execute the INSERT INTO command, the price is not written in the table.
I tried like this:
Dim LTxtAp As Single
LTxtAp = Me.[CmbTitle].[Column](3); nothing
LTxtAp = Me.TxtAp; nothing
LTxtAp = Me.TxtAp.Value; nothing
Any ideea, please?
Regards,
Robert
I have a form where, when I select an item from the combobox, a textbox is filled with [comboboxname].[column](3). I set up the control source of the textbox with [comboboxname].[column](3)
Because this information can change during the time, I need to save it in a table as it is at the moment of selection.
I tried to execute an "insert into" command but only the bounded fields are saved.
Assume that the textbox name is "TxtAp" and the combobox name is "CmbTitle". In the fourth column of the CmbTitle is the price. The control source of TxtAp is "=[CmbTitle].[Column](3)". The price appears in TxtAp when I select a title from CmbTitle but when I try to execute the INSERT INTO command, the price is not written in the table.
I tried like this:
Dim LTxtAp As Single
LTxtAp = Me.[CmbTitle].[Column](3); nothing
LTxtAp = Me.TxtAp; nothing
LTxtAp = Me.TxtAp.Value; nothing
Any ideea, please?
Regards,
Robert