Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Union Query > < Navigation | What is Microsoft Access >
Back to Union Query    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Is a union right for me
Dan Pickle 
     
21 months ago
I am using Richard's video tracking changes https://599cd.com/blog/display-article.asp?ID=1339 to log changes in my database.  What I have right now is 3 tables (2 from the video and the third being the one that I am tracking the changes from).  I have 2 forms that I want to display data on.  The first being a form that just puts LogT data into it so it can be easily read the second form is a form that reads from the changed data and displays it side by side with the changed data.  Then I have a query that uses the change time to join the 1st 2 dissimilar tables together (logT and WirelistChangeLogT)

what I need to do is be able to click on a wirenumber (num field) from the results in the LogQ and have that pull up the data on both wireListT and WireListChangeLogT (similar tables)from the num value of LogQ.

(I hope that made sense)
Richard Rost  @Reply  
          
21 months ago
Why do you not just put all the data in the same table and use a field to indicate which is which?
Dan Pickle OP  @Reply  
     
21 months ago
to be honest I am not sure how I would incorporate it all into 1 table.  the wirelistchangelogT gets it's data from
Private Sub Form_BeforeUpdate(Cancel As Integer)
    If Me.Dirty Then
        If MsgBox("Data has changed!  Save changes?", vbYesNoCancel) <> vbYes Then
            Me.Undo
            Cancel = True
            Exit Sub
        End If
    End If
    DoCmd.SetWarnings False
    DoCmd.RunSQL "INSERT INTO WirelistChangeLogT Select * FROM WirelistT " & "WHERE ID=" & ID
    DoCmd.SetWarnings True
End Sub

and the logT gets it's data from the module
Public Sub Logit(Description As String, Notes As String)
    DoCmd.SetWarnings False
    DoCmd.RunSQL "INSERT INTO LogT (Description, Notes, User) " & "VALUES (""" & Description & """, """ & Notes & """,""" & TempVars("UserName") & """)"
    DoCmd.SetWarnings True
    
End Sub
then of course the wirelistT is where all the regular data is stored
I am not sure how I could incorporate that all into 1 table

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

Next Unseen

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 12/15/2025 2:07:02 PM. PLT: 1s