Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Concatenate Fields in a Form
William Kennedy 
    
4 years ago
I need to generate a text string made from three fields in a form. It needs to stored in the table field [ItemKeyID] in the record.

Left 3 characters of [ItemCategory]
Formated Date yymmdd
Characters in [IDItem]
Ie: Sec2203103
William Kennedy OP  @Reply  
    
4 years ago

Adam Schwanz  @Reply  
           
4 years ago
You can do that with Concatenation

Set the field name = to the LEFT function to get the three characters of item category, concatenate it with the format of the date, concatenate with the IDItem
Adam Schwanz  @Reply  
           
4 years ago
LEFT is covered in expert 14 which you have.
Scott Axton  @Reply  
        
4 years ago
There was a very similar example to this presented in the Customer Codes video
William Kennedy OP  @Reply  
    
4 years ago
That does not work.  I would like to do this in the form.  Using the form fields and storing them in the tbl.  I can use a two column Category Table, [Prefix] and [Category] and display category in form and use prefix as part of concatenation.  Any ideas? Tnx.
Kevin Robertson  @Reply  
          
4 years ago
Is this what you are trying to do?
ItemKeyID = Left(ItemCategory, 3) & Format(PurchaseDate, "yymmdd") & IDItem
Alex Hedley  @Reply  
           
4 years ago
Why would you store it in the Table when it can be calculated?
William Kennedy OP  @Reply  
    
4 years ago
Kevin Robertson yes that is what I am trying to do.  does not work.
Kevin Robertson  @Reply  
          
4 years ago
After taking another look at your screenshot, ItemCategory is in a combo box you you will probably need to access the column property (If ItemKeyID is being generated directly on the form).
ComboName.Column(1)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 7:39:18 PM. PLT: 1s