OK, you would create some VBA code that runs on Insert of a new record from your Form (either the "BeforeInsert" or "AfterInsert" event). I was working on it, but it appears that my workplace install of Access is corrupt, so I have not been able to work through all the kinks yet. But here is the VBA code that you can try to work with.
Note for this code, I assumed the following:
Table name is "MyTable"
Autonumber field is "ID"
Project Code field is "projectCode".
You may need to adjust, where necessary.
Code:
Private Sub Form_BeforeInsert(Cancel As Integer)
Dim recCount As Long
Dim newNum As Long
Dim lastID As Long
Dim projCode1 As String
Dim projCode2 As String
' Check to see if this is first record added to table...
recCount = DCount("*", "MyTable")
If recCount = 0 Then
newNum = 1
Else
' ...otherwise get projectCode of most recent record
lastID = DMax("ID", "MyTable")
projCode1 = DLookup("projectCode", "MyTable", "ID=" & lastID)
' See if last project code is from this week...
If Left(projCode1, 4) = Format(Date, "yyww") Then
' ...if it is, add 1 to current number
newNum = Right(projCode1, 3) + 1
' ...otherwise, return 1
newNum = 1
End If
End If
' Create new code and apply
projCode2 = Format(Date, "yyww") & "-" & Format(newNum, "000")
Me.projectCode = projCode2
End Sub