Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
 
Home > Forums > Access
 
Microsoft Access Forum

Welcome to the Microsoft Access Forum. Access is by far our most popular topic here at Computer Learning Zone. This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, all you have to do is enroll in one of my courses. After you create a logon, you will have full access to the Forums.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

Having problems with your Access database? Here are Rick's Rules if you want help. 

Rule #1: Before you ask for help with a WEIRD problem, meaning Access isn't behaving normally, then make sure you run down the Access Troubleshooter which covers solutions to many common problems. If you have a weird problem and you don't say "yes, I ran down the Troubleshooter" then I'm just going to point you to Rick's Rule #1.

Rule #2: Before posting your question, check to see if it's already been answered. You can use the Search feature to look for keywords. Save me some time having to only point you to another post where your question has already been answered.

Rule #3: If neither of those things help, make sure you post exactly what you're doing, what the specific error message is, what you've tried, and any other details we might need to help you. Don't just say, "I get an error." Tell us what the error is and what you're doing. We're not mind readers. I wish. Also, be sure to read this article on Context. It matters!

Rule #4: Links to files or images on other sites are NOT allowed. Don't try posting a link to your database on Dropbox or any other web site. If you have someone specifically offering to help you, you can email them your database. You can upload screen shots here using the Upload Images link provided on comments. Post your question, then you can upload a screen shot.

NEW: Access Developer Students, make sure you subscribe to the Developer Student Forum.

Click Here to Post a comment and start a new discussion

 

VBA Code Upload Images   Link 
Paul Evans 
14 days ago
What would the VBA code to prevent duplicates being entered into a SIGLE field be please?
Alex Hedley
14 days ago
Have you set it at a Table level?

Similar concept: Duplicate Values on Multiple Fields
Alex Hedley
14 days ago
Otherwise DLOOKUP on a BeforeUpdate
Paul Evans
14 days ago
All I would like is the VBA code for this proceedure that I could copy and paste into the field that I want to use it in. I am unable to set at Table level for some reason that I don't understand. Thanks.
Adam Schwanz
14 days ago
This would be much simpler to setup on table level with indexing. What's it saying that it wont allow that?
Adam Schwanz
14 days ago
If you want to try some kind of VBA code though, I think you could try something like this using your field names. Up to you if you keep the Me.Undo in there

    If SerialNumber = DLookup("SerialNumber", "TransmissionT", "SerialNumber=" & SerialNumber) Then
        Me.Undo
        MsgBox "Error, Duplicate"
    Else
        'not duplicate
    End If
Adam Schwanz
14 days ago
Or I think you could Dim a variable and use DCount as well - https://599cd.com/tips/access/dcount/

Then say something like this, just some ideas

If X <> 0 Then
'Duplicate
Else
'Not Duplicate
End If
Richard Rost
11 days ago
I agree with Adam. I can't think of a reason why you couldn't set this up at the table level. Indexed (No Duplicates).
Add a Reply

Show All Comments

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

4/18/2021Volume
4/8/2021Age, Part 2
3/30/2021Accounts Receivable
3/28/2021Time & Billing
3/28/2021Time & Billing Template
3/28/2021Time & Billing Lessons
3/28/2021Time & Billing Seminar
3/28/2021Access Developer 28
3/27/2021Send Email
3/24/2021Multi-Table Update
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: microsoft access forum  PermaLink