Just got it to work using this code. Barely had to change anything to get it to work from ssanfu's version but I put the change I made for the date in red text.
Code:
Private Sub Allocation_Submit_Click()
Dim sSQL As String
Dim k As Integer
'check for all values entered/selected
If Len(Nz(Me.cboMonDate, "")) = 0 Then
MsgBox "Missing Week. Please make a selection."
Me.cboMonDate.SetFocus
Exit Sub
End If
If Len(Nz(Me.cboResource, "")) = 0 Then
MsgBox "Missing Resource. Please make a selection."
Me.cboResource.SetFocus
Exit Sub
End If
If Len(Nz(Me.cboProject, "")) = 0 Then
MsgBox "Missing Project. Please make a selection."
Me.cboProject.SetFocus
Exit Sub
End If
If Len(Nz(Me.cboPosition, "")) = 0 Then
MsgBox "Missing Position. Please make a selection."
Me.cboPosition.SetFocus
Exit Sub
End If
For k = 2 To 6
If Len(Nz(Me("tbhour" & k), "")) = 0 Then
MsgBox "Missing hours. Please enter hours for " & WeekdayName(k) & "."
Me("tbhour" & k).SetFocus
Exit Sub
End If
Next
'build insert SQL string
For k = 2 To 6
sSQL = "INSERT INTO Allocations (TheDate, Resource_ID, Project_ID, Position_ID, Hours)"
sSQL = sSQL & " VALUES (#" & Me.cboMonDate + k - 2 & "#, " & Me.cboResource & ", " & Me.cboProject & ", "
sSQL = sSQL & Me.cboPosition & ", " & Me("tbHour" & k) & ");"
' Debug.Print sSQL
CurrentDb.Execute sSQL, dbFailOnError
Next
Me.Requery
MsgBox "Done"
End Sub