Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 18th, 2005, 08:47 AM
Danny_Access Danny_Access is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 20 Danny_Access User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 49 sec
Reputation Power: 0
Autonumber default input....



When a user makes a new record, an auto number is automatically assigned (obviously). I would like to however have the auto number display text before the number so when a record is viewed it displays “text here 1234” instead of the usual “1234”. How do I go about having the auto number having text display automatically?



Cheers. J

Reply With Quote
  #2  
Old January 18th, 2005, 12:07 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
You won't be able to combine text with the 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 Here" & " " & [autonumberfield]

Or simply put a label in front of the autonumber control on your form with the text you want to display. Set both to transparent and flat and put a border/box around the both of them and it will appear as though they are the same text box to the user. Make sure the box control is moved to the rear.

lwells

Reply With Quote
  #3  
Old January 20th, 2005, 04:58 AM
Danny_Access Danny_Access is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 20 Danny_Access User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 49 sec
Reputation Power: 0
Ah right, thanks for that. Will probably go with the first one.

Cheers.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Autonumber default input....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway