Select field in combobox

divaam

Registered User.
Local time
Today, 15:27
Joined
Apr 30, 2019
Messages
18
Hello
I have a form name ‘frmentry’ to entry a data to table ‘tblentry’
In the form there are a combobox that list field name table ‘combofield’ and a textbox ‘txtdata’.
When I click the command button I want to update the data in ‘txtdata’ based on the field that I choose in ‘combofield’ to table ‘tblentry’
How I write it in the query?
Thank youuu
 
Hi. Are you trying to add a new record?
 
And I just want to update the field when the field is null
 
In the after update event of the combo (assume it called YourCombo you would use something like

Code:
If IsNull(Me.txtData) Then Me.txtdata = Me.YourCombo
 

Users who are viewing this thread

Back
Top Bottom