field properties table
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Field properties in table

Field properties in table

The UK's most regular instructor-led training courses.
Training information: microsoft+access+training+course · Courses in microsoft access · Microsoft Access Training uk
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version 2003

Field properties in table

Ronel has attended:
Access Introduction course

by - delegate Ronel [1 post] (2008 Jul 31 Thu, 16:35) replyReply

example
Would like the product id to always start with P and followed by 3 auto numbers.

Access Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Dec 9 Tue Bloomsbury 0 FULL    
2002/XP 2008 Dec 11 Thu Tooting 0 FULL    
2003 2008 Dec 18 Thu Bloomsbury 2 book now £215 £215
2003 2008 Dec 23 Tue Bayswater 8 book now £182 £207
2002/XP 2008 Dec 24 Wed Tooting 0 FULL    
2003 2009 Jan 6 Tue Southwark 5 book now £198 £215
Full Schedule: See all 51 Access Intermediate course dates.
Bookings currently available until 24th November 2009.

RE: field properties in table

by - trainer Pete platinum contributer[816 posts] (2008 Aug 1 Fri, 08:03) Edited on 2008 Aug 1 Fri, 08:06 replyReply

Hi Ronel,
Thank you for your post and welcome to the forum, in answer to your request,
You won't be able to combine text with an autonumber field. What you can do is create a unbound text box that will concantenate the text you want to display and the autonumber field number and use that to display to the user.

In your forms On Current event you can keep the unbound text box in sync with the records displayed.

UnboundTextBox.Value = "Your Text (P)" & " " & [autonumberfield]

In your underlying table the product ID would have to be a standard autonumber.

If however you do not wish to use an AutoNumber ID then you can utilise a combination of the Input Mask and the Validation Text boxes: in the Input Mask box type >L000
and in the Validation Rule type Like "P???"

If you then apply the Primary Key to this field and ensure No Duplicates it will allow you to only enter P followed by three numbers.

I hope that has helped, sorry about the AutoNumber though.

regards Pete
.¸¸·´¯'·.¸¸.·´¯'·.¸¸·´¯'·.¸¸.·´¯'·.¸¸·´¯'·.¸¸.· ><((((º>


Related articles

· Microsoft Access Beginners' Training: Getting to Grips with Databases
· The Benefits of Certified Microsoft Training in Access
· Access VBA Handling Errors and Debugging Code
· Material covered on a Microsoft Access Course
· Why Do I Need To Use Access?

Please browse our web site to find out more about
microsoft+access+training+course and other Microsoft training courses.

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz