Doyce,
I would use pass-through queries where ever possible. Use them for control row sources as well as form/report record sources.
There is some debate about using "WITH (NOLOCK)" in your SQL Server statements but I typically use this for all somewhat static recordsets.
Duane Hookom, MVP
MS Access
To: MS_Access_Professionals@yahoogroups.com
From: MS_Access_Professionals@yahoogroups.com
Date: Thu, 5 May 2016 06:56:49 -0700
Subject: Re: [MS_AccessPros] Re: Access Locking SQL Server
John,
The form is also set for no locks. The user chooses a part number from a combo box then clicks one of 3 buttons to print one of 3 reports. One prints labels on a laser printer. The other two are two different reports that print to a thermal label printer. The reports have queries as their record source. All of the reports have No Locks. Could the combo box where the part number is selected be the culprit?
Doyce
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
I would use pass-through queries where ever possible. Use them for control row sources as well as form/report record sources.
There is some debate about using "WITH (NOLOCK)" in your SQL Server statements but I typically use this for all somewhat static recordsets.
Duane Hookom, MVP
MS Access
To: MS_Access_Professionals@yahoogroups.com
From: MS_Access_Professionals@yahoogroups.com
Date: Thu, 5 May 2016 06:56:49 -0700
Subject: Re: [MS_AccessPros] Re: Access Locking SQL Server
John,
The form is also set for no locks. The user chooses a part number from a combo box then clicks one of 3 buttons to print one of 3 reports. One prints labels on a laser printer. The other two are two different reports that print to a thermal label printer. The reports have queries as their record source. All of the reports have No Locks. Could the combo box where the part number is selected be the culprit?
Doyce
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
Doyce-
---In MS_Access_Professionals@yahoogroups.com, <wrmosca@...> wrote :
Did you check the settings on the form? That has to be the problem. Also, you mention a form, but then you say you're printing labels. Is there code in the form that opens a report to print? And if you're opening a report, what are it's lock settings?
John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
SQL Queries for Mere Mortals
(Paris, France)
On May 5, 2016, at 3:34 PM, winberry.doyce@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
---In MS_Access_Professionals@yahoogroups.com, <wrmosca@...> wrote :
Doyce - For the default lock that each form will use when it is created go to File tab>Client Settings>advanced.
For existing forms, open the form in design view. select the form itself. Under the Data tab you will see a Record Locks property.
Did you try relinking the form? Could there be any other open forms like hidden ones that might have a lock on the table?
Bill
---In MS_Access_Professionals@yahoogroups.com, <winberry.doyce@...> wrote :
---In MS_Access_Professionals@yahoogroups.com, <wrmosca@...> wrote :
---In MS_Access_Professionals@yahoogroups.com, <winberry.doyce@...> wrote :
---In MS_Access_Professionals@yahoogroups.com, <wrmosca@...> wrote :
Doyce
I've never seen an Access front end lock up a table in SQL. What's your record locking set to on the GUI? I use "Edited record" for all my locks. But you also need to run down where the lock is staying put.
Check that the table has a primary key and Access is indexing it. If it has a primary key you should be able to see it in design view. If it doesn't have a primary key or is actually a view you can delete it and link to it again. Access should ask you to choose the field(s) that will constitute a unique row.
Regards,
Bill Mosca, Founder - MS_Access_Professionals
Microsoft Office Access MVP
My nothing-to-do-with-Access blog
__._,_.___
Posted by: Duane Hookom <duanehookom@hotmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (8) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar