Setting the controlbox property to no will remove the Max,min, and X.
I use this procedure to validate controls:
Code:
Public Function ValidateForm(frm As Form, TagCharacter As String) As Boolean
'validated controls must have a label. Ok to use a hidden label if needed.
Dim ctl As control
Dim flg As Boolean
Dim strOut As String
flg = True
For Each ctl In frm.Controls
If ctl.Tag = TagCharacter Then
If Nz(ctl.value, "") = "" Then
flg = False
ctl.BorderColor = vbRed
strOut = strOut & Space(10) & "* " & ctl.Controls.Item(0).Caption & vbNewLine
Else
ctl.BorderColor = vbBlack
End If
End If
Next
If flg = False Then
MsgBox "The following field(s) must be completed:" & vbNewLine & strOut
End If
ValidateForm = flg
End Function
It returns True/False so use that with your close button
Code:
if ValidateForm(me,"V8") = true then
docmd.close acform, Me.Name
end if