Advertisement

01.04.2008 at 02:04AM PST, ID: 23058124
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Can't go to the specifed record - Recordset issue?

Asked by grunners80 in Access Coding/Macros, Access Forms

Tags:

I've got a system whereby if a user navigates to a record that is 'locked' i.e. a field value is -1, the user is alerted and should be put back to either the previous record or the first record in the database.

I open a recordset to get to the correct record, then if the record is locked, I believe I need to create a new recordset for the whole db with a select statement.  At the moment it's getting to the acFirst code and saying "You can't go to the specified record", as I assume there's only one record in the recordset.  I've attached my code.  Many thanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
Private Sub Form_Current()
 
Dim chkLock As DAO.Recordset
Dim SQL As String
Dim Refno As String
 
Refno = [Forms]![frm_Online_Expenses]![Ref]
 
SQL = "SELECT * FROM tbl_Personal where Ref =  '" & Refno & "'"
strSQL = "SELECT * FROM tbl_Personal"
 
Set chkLock = CurrentDb.OpenRecordset(SQL, dbOpenDynaset, dbSeeChanges)
 
If chkLock!Locked = True Then
    MsgBox "This record is locked by another user! Please try later."
    DoCmd.GoToRecord , , acFirst	'
    
End If
 
If chkLock!Locked = False Then
chkLock.Edit
chkLock!Locked = -1
chkLock.Update
 
End If
 
Set chkLock = Nothing
 
End Sub
 
Loading Advertisement...
 
[+][-]01.04.2008 at 05:32AM PST, ID: 20581938

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 03:05AM PST, ID: 20598179

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 07:57AM PST, ID: 20600368

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 09:53AM PST, ID: 20601347

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 07:05AM PST, ID: 20609118

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 11:10AM PST, ID: 20611583

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.09.2008 at 04:06AM PST, ID: 20617305

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.09.2008 at 06:45AM PST, ID: 20618519

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Access Forms
Tags: VBA, Access
Sign Up Now!
Solution Provided By: JDettman
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.10.2008 at 06:03AM PST, ID: 20627144

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.10.2008 at 08:06AM PST, ID: 20628192

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 04:20AM PST, ID: 20635626

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628