I'm assuming you have a database with a field called empID that is set to autonumber mode. If that's the case, when you add a record to the database, don't fill in a value for the field and the database will automatically assign it.
Are you also asking how to write the record to the database? If so, you'll need to use DAO or ADO to access the database.