?
Solved

New and edited records won't save

Posted on 2011-03-04
4
Medium Priority
?
281 Views
Last Modified: 2012-05-11
I have an Access front end/SQL server 2005 back end database that users access through Citrix.  Now I have two users telling me that when they input a new record or update a record it is not saved.  I've tested it on my side and I don't have the problem on my end.  My code prompts the user to save the new record or the updated record and then I have a docmd.save and docmd.close function run.  Also, I disabled the Docmd.SetWarnings False command, and the users don't get an error message.  Because it works for me, I don't think that it is a code problem, and it shouldn't be a permissions problem within the database, as they have unrestricted access.  Thank you in advance for your suggestions.
0
Comment
Question by:JoySloan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 375 total points
ID: 35041518
Next time you speak to them, run SQL Profiler in the background so you can trace any commands that hit the SQL database. This tool will allow you to watch any queries that hit the database and you can filter for their specific userid or machine name.

http://msdn.microsoft.com/en-us/library/ms181091.aspx is a starting point on how to use it. Click through the various links to get relevant assistance. Its a pretty intuitive tool.

(In Management Studio, go to Tools, SQL Profiler)

This will allow you to see what (if anything) is actually being sent to the SQL Server and you can troubleshoot from there.

0
 
LVL 85

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 375 total points
ID: 35043157
Have you tried logging in via Citrix, using the login information of those users? That'd be the only way to truly troubleshoot this.

If you do so, then:

Can those users enter data directly into the linked tables? If they can, but those changes are NOT saved through your form, then you have an issue with your coding (regardless of whether it works on yours or not).

I'd also encourage you to use this syntax when saving changes:

If Me.Dirty Then Me.Dirty = False

DoCmd.Save is intended to save Design changes, not Data changes. In most cases it works to save data, but it is not foolproof. The Me.Dirty=False method is the preferred method of nearly all professional Access developers (and the Access development/test team as well).
0
 

Author Comment

by:JoySloan
ID: 35063020
I will split the points because both of your provided excellent starting points.  We ended up recreating the login for both users to reset any cached information, and that worked.

Thank you both!  ...and LSMConsulting, I replaced docmd.save  with If Me.Dirty Then Me.Dirty = false.
0
 

Author Closing Comment

by:JoySloan
ID: 35063028
Good answers but I found an alternative solution.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question