Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Track Changes    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Track Changes in Data
Lance Muller 
    
4 years ago
Good day

I followed the 2 line code in the above video and made changes according to my Tables/needs. I however get the following Error Message: Run-time error "3075": Syntax error(Missing Operator)in query expression 'MemberID='.(In my Tables, I don't work with Customers, but with Members. Thus my ID field is "MemberID".)

Please assist urgently.

Kind regards

Lance
Scott Axton  @Reply  
        
4 years ago
Not enough info.  Please post your entire expression.  That error indicates you are likely missing a quote, parenthesis, or something similar.
Lance Muller OP  @Reply  
    
4 years ago
Private Sub Form_BeforeUpdate(Cancel As Integer)

    DoCmd.RunSQL "INSERT INTO DataBaseChangeLogT SELECT * FROM DataBaseT " & _
         "WHERE MemberID=" & MemberID


End Sub
Lance Muller OP  @Reply  
    
4 years ago
Good day

I followed the 2 line code in the above video and made changes according to my Tables/needs. I however get the following Error Message: Run-time error "3075": Syntax error(Missing Operator)in query expression 'MemberID='.(In my Tables, I don't work with Customers, but with Members. Thus my ID field is "MemberID".)

Kind regards

Lance

*EXPRESSION:
Private Sub Form_BeforeUpdate(Cancel As Integer)

    DoCmd.RunSQL "INSERT INTO DataBaseChangeLogT SELECT * FROM DataBaseT " & _
         "WHERE MemberID=" & MemberID


End Sub
Kevin Robertson  @Reply  
          
4 years ago
Is MemberID coming from a form field? Sounds like a Null is being sent rather than an actual value.
Lance Muller OP  @Reply  
    
4 years ago
The MemberID, is the Primary Key Field in my "DataBaseT" Table.
Lance Muller OP  @Reply  
    
4 years ago
Oops! The MemberID, is also my Primary Key Field in my "DataBaseChangeLogT" Table.(The MemberID is thus the Primary Key Field in BOTH the DataBaseT and DataBaseChangeLogT Tables.)

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

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: 4/30/2026 3:43:37 PM. PLT: 1s