Rhonda,
You will need a 2 field primary key that you can, then, display in the
format that you need. One field would be a date data type field and have
it's default value set to Date(). The other would be a long integer field
and you could use the following code in the BeforeUpdate event of your form
to calculate the appropriate sequential number:
If IsNull(Me.txtID_Number) And DMax("[ID_Number]", "YourTable", "[YourDate]
= #" & Me.YourDate & "#") > 0 Then
Me.txtID_Number = DMax("[ID_Number]", "YourTable", "[YourDate] = #" & Date
& "#") + 1
Else
Me.txtID_Number = 1
End If
Watch out for word wrap on the lines of code above. Everything from "If" to
"Then" needs to be on one line. Also, you may need to change the field name
for your sequential number to match what you have in your table and on your
form.
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security:
www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Big List:
www.ltcomputerdesigns.com/JCReferences.html