I created a form in MS Access 2007 for updating the user records in it.
I have one combobox in that form. I want to make one value as default. I'm selecting only one column from the query.
When the form loads it shows my default value. After submitting one record using button click it changes to the last value I selected for updating the record.
I want to show the same default value every time.
Query:
Public function bindcombo()
Rs as recordset
Strqry ="select menuname from menumaster wher menutyp='cutback'"
Rs.open strqry
With cbocutback
.clear
.RowSourceType = "table/query"
.RowSource =strqry
.ReQuery
.defaultvalue="NA"
End with
End function
I get the value in the combobox, and it is not showing my default value there. It is showing "#Name?" (THIS VALUE INSTEAD OF THE DEFAULT VALUE)
These are my combobox values: rcCutback, loc-cutback and NA.