Can anyone give me some general code for the 'auto-fill' option when pulling information from a database to a text box?

There are a few topics about this, but they are specific to the individual's code. I am looking for something general. Please be gentle , I'm kind of a newbie.