G
Guest
The textbox HNo1is set to unbound, when the user click to select "I" on combo
box CobDis1 then HNo1 will enable and I want recordsource to be set to fields
name "h_no". How can I do this? Thanks for all respond.
Private Sub CobDis1_AfterUpdate()
Dim rs As DAO.Databases
Set rs = CurrentDb.OpenRecordset("dbo_Case", dbOpenDynaset, dbSeeChanges)
If Me.CobDis1 = "I" Then
Me.HNo1.Enabled = True
Me.HNo1.ControlSource = rs.Field("h_no")
Else
Me.HNo1.Enabled = False
End If
End Sub
box CobDis1 then HNo1 will enable and I want recordsource to be set to fields
name "h_no". How can I do this? Thanks for all respond.
Private Sub CobDis1_AfterUpdate()
Dim rs As DAO.Databases
Set rs = CurrentDb.OpenRecordset("dbo_Case", dbOpenDynaset, dbSeeChanges)
If Me.CobDis1 = "I" Then
Me.HNo1.Enabled = True
Me.HNo1.ControlSource = rs.Field("h_no")
Else
Me.HNo1.Enabled = False
End If
End Sub