Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Attendance 5    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Attendance
Brian Heintzberger 
      
9 months ago
Good afternoon,
I am implementing the attendance idea into my database and I have the form as a subform inside another subform.  I am doing swim practices and I have a main form with the week, a subform with each day and two more subforms in that.  One is for the practices and the other is for the attendance.  I am trying to do the button to notify if you have already added athletes.  I am trying to use the dayofweekID instead of the date.  I am having trouble. I have a couple screen shots.  Thanks for all your cool stuff.
Brian Heintzberger OP  @Reply  
      
9 months ago

Brian Heintzberger OP  @Reply  
      
9 months ago

Brian Heintzberger OP  @Reply  
      
9 months ago

Raymond Spornhauer  @Reply  
          
9 months ago
In your post you say you are having trouble..... what are you having trouble with?
Donald Blackwell  @Reply  
       
9 months ago
As Raymond said: Please be more specific. See Rule #2.

Your as written, with the table data you provided will likely ALWAYS find and AttendanceID having a PracticeDayofWeekID that is greater than zero because you're not specifying any other criteria so, for example, it will go to your table, find AttendanceID # 101 with a PracticeDayofWeekID of 1. The value 101 will be assigned to ID which should set off your "Are You Sure?"

At that point, is "Are You Sure?" firing? If not, is there any error and if so what is it?

If it is firing and no error, does it exit if you press "No" or "Cancel". And again, if an error, what error. If that part works, great.

If it is firing and no error, does it run your query if you choose "Yes". Does an error pop then or does it exit silently?

We need details of what is happening when to be able to help you.
Brian Heintzberger OP  @Reply  
      
9 months ago
it fires just fine it just does it all the time.  I am trying to look at the pracitceweedayid for that.  When the attendance goes to a new record that id number is not in the attendance table.  I just can't figure out how to look at that value.
Donald Blackwell  @Reply  
       
9 months ago
So if you're clicking the button on your Attendance form and that form has PracticeDayofWeekID on it that is being passed to AddStudents_click, then your DLookup should probably be something like:

ID = Nz(DLookup("AttendanceID","TBLAttendance", "PracticeDayofWeekID=" & PracticeDayofWeekID),0)

This way, it will look up the Attendance records for that specific Practiceid and set the ID to whatever it should be if there are already records. If it doesn't find any matching records, ID will be zero and fire the query without the "Are You Sure?".
Brian Heintzberger OP  @Reply  
      
9 months ago
Cool, I will try that.  Thanks again for all your help.

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

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/1/2026 6:34:59 PM. PLT: 0s