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 
Force new record on open
zach 
    
13 years ago
Hi,
I have a list box filled with current employees.  I set up an on click command to open the collection of forms where I log that employee's time, projects, etc. for each week.  When my time tracking form opens, I have an on open event to go to a new record.  All this works fine, but I can't get the employee id to automatically take the value of the rest of the collection of forms.  How can I do this?  
The autonumber for the new record does take on a value when I open to the new record.  The employee id is a foreign key and its the "WHERE" condition in the on click command in the list box.
I hope that makes sense!  Any help would be greatly appreciated.


Reply from Richard Rost:

You should have the EmployeeID on Form1. It can be a combo box. Then when you open Form2, you want to set the DEFAULT VALUE for EmployeeID to Forms!Form1!EmployeeID. I cover this in Access Expert 2.

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/16/2026 10:22:41 PM. PLT: 1s