Use this code:
Set td = daoDB36.TableDefs("Table")
Set f = td.CreateField("end", dbText)
f.Properties("Required") = True
f.Properties("AllowZeroLength") = True
td.Fields.Append f
You can use this code to disable all of the Command Buttons:
Private Sub Form_Load()
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is CommandButton Then
ctl.Visible = False
End If
Next
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.