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 
Notes on Forms
Tom Murphy 
    
3 years ago
I watched (and learned from) Richard's video on how to put a note on a form (using a table called NoteT) andit works fine. But what I want to do is to add TWO notes to the same form... and I can't figure out how to do that.  I have two fields in my NoteT but can't figure out in Expression Builder how to refer to them separately on the same form.

Any ideas?

TIA
Tom Murphy OP  @Reply  
    
3 years ago
This is the video I watched: Notes Anywhere!
Scott Axton  @Reply  
        
3 years ago
What you are describing is basically a One to Many relationship.  Just like the Contacts in the Contacts and fleshed out in the Followups series.

You would NOT want multiple Notes tables i.e. Notes1T Notes2T.
You could call Contacts (NotesT) anything you want and have as many notes as you want for each customer.
To bring it into your form you just use the subform as described in the video.

On the other hand if you absolutely need 2 notes fields and are sure you will only ever need 2, you could make 2 notes fields in your NotesT table and give them different field names. Something along the lines of ProductNotes and AssemblyNotes, etc.

The better method would be to have a single notes field and also a category field where you could categorize the note.
Again see the videos above and also take a look at the Normalizing Data.
Scott Axton  @Reply  
        
3 years ago
OK I just re-watched that video.
You could add a second note in like this.  I named mine SecondNote.
Change the Tag for that Note and also modify your code like so:


Scott Axton  @Reply  
        
3 years ago

Scott Axton  @Reply  
        
3 years ago
You will also need to change the after update event.

Private Sub Notes_AfterUpdate()

    CurrentDb.Execute "UPDATE NoteT SET NoteText=""" & Notes & """ WHERE NoteID=" & Notes.Tag
    Status "Note updated."

End Sub


Private Sub SecondNote_AfterUpdate()

    CurrentDb.Execute "UPDATE NoteT SET NoteText=""" & SecondNote & """ WHERE NoteID=" & SecondNote.Tag

End Sub

Tom Murphy OP  @Reply  
    
3 years ago
Thank you Scott Axton... I followed your suggestions and it worked perfectly!  I am assuming you are mentioning about the After Udate part because Richard puts up the message "Note Updated."  I am NOT using that comment so I believe I don't need to have an After Update event.  (I am the only user of the database and the notes in Note1 and Note2 are just for my information, and will not be updated.

Again, thank you very much!
Scott Axton  @Reply  
        
3 years ago
Tom
If you want to edit it and have the changes saved then you need the AfterUpdate.
You don't need the Status.  See the difference between Notes and SecondNote above?

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 8:49:39 AM. PLT: 0s