Advertisement

10.05.2008 at 04:20AM PDT, ID: 23788420
[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!

6.2

Trying to save temp table data created for form to a permanent table

Asked by Destiny947 in Access Coding/Macros, Microsoft Access Database, Access Forms

Tags: , , , ,

I have a basic form that uploads data from a spreadsheet, populates the fields and assigns a number for the project.

There are 3 tables involved: tblPlan, tblStrPlanBldgs, and TempSPBuildings.

Currently, saving the data from the form to the tblPlan works just fine. I have created a button to test saving the building information (which uses the Temp table) to tblStrPlanBldgs and am getting the following error message "3704: Operation is not allowed when the object is closed." This occurs on the line
                .Open "tblMailCodes", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
from the code below.

Start 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:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
Private Sub cmdTestSaveBldgs_Click()
On Error GoTo ErrorHandle
 
Dim MailCodeID As Variant
Dim PlanID As Integer, SubPlanNo As Integer, AuthAction As String, plan As String
Dim desc As String, approval As Date, auth As Date, MailCode As String
 
Dim rst As ADODB.Recordset, rst1 As ADODB.Recordset, rst2 As ADODB.Recordset, rst3 As ADODB.Recordset
  
desc = Me!txtPlanDescription
plan = Me!txtPlanNo
approval = Me!txtCharterApprovalDate
'auth = Me.txtAuthDate
 
'rst = tblPlan
'rst1 = TempSPBuildingInfo table
'rst2 = tblStrPlanBldgs
'rst3 = tblMailCodes
 
Set rst = New ADODB.Recordset
   With rst
        .Open "tblPlan", CurrentProject.Connection, adOpenDynamic, adLockPessimistic
        .Find "PlanNo = '" & plan & "'"
        Debug.Print .Fields("PlanNo").Value
        PlanID = .Fields("PlanAutoID").Value
        Debug.Print .Fields("PlanAutoID").Value
   End With
   'MailCodeID = DLookup("[mailcodeid]", "[tblmailcodes]", "[tblmailcodes].[mailcode] = " & [tblapatemp2].[Mail Code] & "'")
 
Set rst1 = New ADODB.Recordset
 
 
    With rst1
    .Open "TempSPBuildingInfo", CurrentProject.Connection, adOpenStatic, adLockOptimistic
    Do While Not rst1.EOF
 
        MailCode = .Fields("Mail Code").Value
        With rst3
            Set rst3 = New ADODB.Recordset
            Do While Not rst3.EOF
                .Open "tblMailCodes", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
                .Find "Mailcode = '" & MailCode & "'"
                MailCodeID = .Fields("mailcodeid").Value
                MsgBox MailCodeID
            rst3.MoveNext
            Loop
        End With
        Debug.Print .Fields("Mail Code").Value
        AuthAction = .Fields("Action").Value
        Debug.Print .Fields("Action").Value
    rst1.MoveNext
    Loop
    End With
    
rst.Close
rst1.Close
rst3.Close
 
ExitHere:
    Set rst = Nothing
    Set rst1 = Nothing
    Set rst3 = Nothing
    Exit Sub
 
ErrorHandle:
    MsgBox Err.Number & ": " & Err.Description
    Resume ExitHere
End Sub
 
Loading Advertisement...
 
[+][-]10.05.2008 at 04:44AM PDT, ID: 22644104

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.

 
[+][-]10.05.2008 at 04:46AM PDT, ID: 22644111

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, Microsoft Access Database, Access Forms
Tags: microsoft, access, 2003, vba, 3704: Operation is not allowed when the object is closed
Sign Up Now!
Solution Provided By: Badotz
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.05.2008 at 04:55AM PDT, ID: 22644146

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.

 
[+][-]10.05.2008 at 05:02AM PDT, ID: 22644178

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.

 
[+][-]10.05.2008 at 05:11AM PDT, ID: 22644214

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.

 
[+][-]10.05.2008 at 05:13AM PDT, ID: 22644221

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.

 
[+][-]10.05.2008 at 05:17AM PDT, ID: 22644230

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.

 
[+][-]10.05.2008 at 05:33AM PDT, ID: 22644268

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.

 
[+][-]10.05.2008 at 05:35AM PDT, ID: 22644274

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.

 
[+][-]10.05.2008 at 05:37AM PDT, ID: 22644280

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.

 
[+][-]10.05.2008 at 05:38AM PDT, ID: 22644284

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.

 
[+][-]10.05.2008 at 05:42AM PDT, ID: 22644296

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.

 
[+][-]10.05.2008 at 06:45AM PDT, ID: 22644468

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.

 
[+][-]10.05.2008 at 07:38AM PDT, ID: 22644719

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.

 
[+][-]10.05.2008 at 11:51AM PDT, ID: 22645632

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.

 
[+][-]10.05.2008 at 11:52AM PDT, ID: 22645635

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.

 
[+][-]10.08.2008 at 05:13PM PDT, ID: 22674570

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.

 
[+][-]10.08.2008 at 05:37PM PDT, ID: 22674683

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.

 
[+][-]10.08.2008 at 05:49PM PDT, ID: 22674746

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.

 
[+][-]10.08.2008 at 06:08PM PDT, ID: 22674893

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.

 
[+][-]10.08.2008 at 06:13PM PDT, ID: 22674916

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.

 
[+][-]10.08.2008 at 06:25PM PDT, ID: 22674959

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.

 
[+][-]10.08.2008 at 06:35PM PDT, ID: 22674982

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.

 
[+][-]10.08.2008 at 06:41PM PDT, ID: 22675006

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.

 
[+][-]10.08.2008 at 06:45PM PDT, ID: 22675022

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.

 
[+][-]10.08.2008 at 06:52PM PDT, ID: 22675055

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.

 
[+][-]10.08.2008 at 07:08PM PDT, ID: 22675142

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.

 
[+][-]10.09.2008 at 06:14AM PDT, ID: 22677992

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.

 
[+][-]10.09.2008 at 06:39AM PDT, ID: 22678230

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.

 
[+][-]10.09.2008 at 11:02AM PDT, ID: 22680860

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.

 
[+][-]10.09.2008 at 01:41PM PDT, ID: 22682218

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.

 
[+][-]10.09.2008 at 04:33PM PDT, ID: 22683358

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.

 
[+][-]10.09.2008 at 05:55PM PDT, ID: 22683654

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.

 
[+][-]10.10.2008 at 05:56AM PDT, ID: 22686327

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