'Code in view command Private Sub cmdview_Click() Set reccity = New ADODB.Recordset reccity.Open "select * from city_detail where State_name='" & dc1.text & "'",Con,adOpenStatic,adLockOptimistic,adCmdText Set dll.RowSource = reccity dll.ListField = "City_Name" dll.BoundColumn = "ID" End Sub 'code in DBlist Private Sub dll_Click() reccity.Bookmark = dll.SelectedItem txtid.Text = reccity.Fields(0) dc1.Text = reccity.Fields(1) txtcitynm.Text = reccity.Fields(2) txtcitynm.Locked = False End Sub
Error : Run-Time error '91': Object Variable or With block variable not set
con
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)