Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto fill one field

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi again,

I got a database, which has one field which shows the number with "C", like "C08903". It is input manually. But now this field will be changed to be filled automaticly equal to AutoNumber field (another field) when the new record is input. any suggestion? thanks a lot.
 
Here is a tip for prefixing auto number fields. If you want your auto number field to always start with a "C", then leave the field as an autonumber, and put the following in the Format property of the field in the table:

>"C"

This will work for any field. So if you create a text primary key that will allow 01522, now just put >"C" in the format property, and the users can just enter 01522 when they are data entering, but it will show up as C01522 on any lists, combos, reports, etc.

Don't know if this is what you are looking for or not. Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top