Hello Friends,
vb6.0
i want to add only 4-record in the table IF record is greater then or equal then 4 then i want to show message and
Main_frm.Login_ mnu.Enabled = False
code i use:
Set pk = OpenDatabase(Ap p.Path & "\NewCount.mdb" , False, False)
Set r = pk.OpenRecordse t("Count", dbOpenDynaset)
If r.RecordCount > 4 Then
Main_frm.Login_ mnu.Enabled = False
Else
Main_frm.Login_ mnu.Enabled = True
End If
but it is not working
vb6.0
i want to add only 4-record in the table IF record is greater then or equal then 4 then i want to show message and
Main_frm.Login_ mnu.Enabled = False
code i use:
Set pk = OpenDatabase(Ap p.Path & "\NewCount.mdb" , False, False)
Set r = pk.OpenRecordse t("Count", dbOpenDynaset)
If r.RecordCount > 4 Then
Main_frm.Login_ mnu.Enabled = False
Else
Main_frm.Login_ mnu.Enabled = True
End If
but it is not working
Comment