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 
Storing a field from form
William Kennedy 
    
4 years ago
I have a Form 4frm_otherEvent that needs to generate a document ID into a field DOCID in Table 4tbl_otherEvent.

The Document ID is formed by =[EventPrefix] & Format([EvDate],"yyyymmdd") and works.  

What I can not do is store that value into the table in the DOCID Field.
William Kennedy OP  @Reply  
    
4 years ago

William Kennedy OP  @Reply  
    
4 years ago

Adam Schwanz  @Reply  
           
4 years ago
The easiest way would be to put the DOCID field onto the form, and then do
DOCID=[EventPrefix] & Format([EvDate],"yyyymmdd")

Either in the on current event or on a button press or however you want to do it, you can even hide the DOCID if you want to.
Otherwise you're looking at needing to use a db.execute SQL statement to set table values, which is pointless when the form has the field already.
Stefan Pinne  @Reply  
    
4 years ago
SQL Insert is easy to use

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/8/2026 10:42:09 PM. PLT: 0s