Try the code below replacing the temporary names with your table field names and form text box.
Code:
If IsNull(Me!BoxA) Then ErrMsg: Exit Sub
If IsNull(Me!BoxB) Then ErrMsg: Exit Sub
If IsNull(Me!BoxC) Then ErrMsg: Exit Sub
If IsNull(Me!BoxD) Then ErrMsg: Exit Sub
If IsNull(Me!BoxE) Then ErrMsg: Exit Sub
Dim dbs As Database, rst As Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("Select * from YourTableNameHere")
rst.AddNew
rst!BoxA = Forms!YourTableNameHere!Field1
rst!BoxB = Forms!YourTableNameHere!Field2
rst!BoxC = Forms!YourTableNameHere!Field3
rst!BoxD = Forms!YourTableNameHere!Field4
rst!BoxE = Forms!YourTableNameHere!Field5
Set dbs = Nothing
rst.Update
rst.Close
DoCmd.Close acForm, "YourFormNameHere"
DoCmd.OpenForm "YourFormNameHere"
Code:
Private Sub ErrMsg()
Dim x As Variant
x = MsgBox("BoxA, BoxB, BoxC, BoxD, and BoxE must all be completed." & Chr$(10) & Chr$(10) & "Please check the data entry and re-submit.", , "Invalid Entry")
End Sub
Assuming 5 entry boxes, I added some code that would check to see if the value is null. This would only be necessary if the field must be filled, such as if it were the primary key. You can add and remove as needed. The "ErrMsg" is a Private Sub that would need to be entered into the form's VBA code, as well. That is the code in the second code group. You can just copy and paste it after writing the data entry portion, but there will be an error if you reference "ErrMsg" and there is no code for it.
The last two lines "refresh" your form. Since the code writes the entered data into the table, closing and reopening the form is one quick way to clear the entered data. You could also add the code below after "rst.Close" instead of closing and opening the form.
Code:
BoxA = Null
BoxB = Null
BoxC = Null
BoxD = Null
BoxE = Null
It appears you are coming from the Excel world with the reference to Column(1) in the code you posted. In Access, Columns = Fields, and you reference the Fields by their name. The Columns(1) would refer to the second column in a combo box that queried more than one field (Access starts counting at 0 in that instance).